| Refresh | Home EGTry.com

gcc preprocessor options



preprocess source file, and do not compile

 gcc -E hello.c

 gcc -E -o hello_pre.c hello.c


specify an additional directory (for instance "inc" directory) to search for including header file

 gcc -Iinc hello.c


define a macro at command, where NDEBUG=1

 gcc -DNDEBUG hello.c