본문 바로가기

Research/Programming28

Makefile: 변수 출력하기 8.12 Functions That Control Make These functions control the way make runs. Generally, they are used to provide information to the user of the makefile or to cause make to stop if some sort of environmental error is detected. $(error text...) Generates a fatal error where the message is text. Note that the error is generated whenever this function is evaluated. So, if you put it inside a command.. 2009. 12. 14.
[SQLITE] INSERT 형식) INSERT INTO table (column_list) VALUES (value_list); 예) INSERT INTO foods (name, type_id) VALUES ('Cinnamon Bobka', 1);foods 테이블에 name은 'Cinnamon Bobka', type_id는 1인 행을 insert한다. 만약에 value_list에 모든 컬럼의 값들을 제공하면, column_list는 생략가능 하다. 2009. 11. 18.
gcc 이야기 출처: gcc이야기 gcc는 예전에는 GNU C Compiler의 약자였으나 지금은 GNU Compiler Collection의 약자로 다양한(?) 언어의 컴파일러들의 집합체이다. gcc는 한마디로 GNU에서 개발된 ANSI C 표준을 따르는 C 언어 컴파일러라고 말할 수 있다. gcc는 ANSI C 표준에 따르기는 하지만 ANSI C 표준에는 없는 여러 가지 확장 기능이 있다. 또한 gcc는 통합개발환경(IDE)을 가지고 있지 않은 command line 컴파일러이다. 옛날 Turbo-C를 주로 사용해 보셨던 분들은 tcc.exe와 비슷하다고 생각하면 된다. (*) -v 옵션 현재 사용되고 있는 gcc의 버전을 나타내는 옵션이다. 특정 소프트웨어 패키지를 컴파일하기 위해 어느 버전 이상의 gcc를 쓰도.. 2009. 7. 22.
$(warning TEXT...) $(warning TEXT...) This function works similarly to the error function, above, except that make doesn’t exit. Instead, TEXT is expanded and the resulting message is displayed, but processing of the makefile continues. The result of the expansion of this function is the empty string. 2006. 1. 9.
$(filter PATTERN...,TEXT) $(filter PATTERN...,TEXT) Returns all whitespace-separated words in TEXT that *do* match any of the PATTERN words, removing any words that *do not* match. The patterns are written using %, just like the patterns used in the patsubst function above. The filter function can be used to separate out different types of strings (such as file names) in a variable. For example: sources := foo.c bar.c ba.. 2006. 1. 9.
외부 프로그램을 실행시키고 출력결과를 가져오려면 ? http://www.joinc.co.kr/modules/moniwiki/wiki.php/FAQ?action=recall&rev=1.27#toc 1.4 외부 프로그램을 실행시키고 출력결과를 가져오려면 ? # 제가 만든 프로그램에서 'ls'등을 실행시키고 화면에 출력되는 값들을 받아 오려면 어떻게 해야 하는지 궁금합니다. 이 값들을 읽어들이고 분석해서 어떤 일을 하는 프로그램을 짜고 싶습니다. fork()시킨후에 execl를 이용해서 외부 명령어를 실행시키고 이것을 pipe로 연결하는 방법이 있습니다. 그러나 이것은 복잡한 방법이고 간단하게 popen()을 사용하면 됩니다. #include int main() { FILE *fp = NULL; char buff[256]; if ((fp = popen("ls .. 2005. 8. 23.