http://stackoverflow.com/questions/2410976/how-to-define-a-string-in-gcc-command-line
to avoid the shell "eating" the quotes and other characters, you might try single quotes, like this:
gcc -o test test.cpp -DNAME='"Mary"'
This way you have full control what is defined (quotes, spaces, special characters, and all).
'Programming' 카테고리의 다른 글
java zip압축 하기/풀기 (0) | 2012.07.03 |
---|---|
Eclipse Problem : failed to create the java virtual machine (0) | 2012.06.30 |
Original 1964 Dartmouth BASIC Manual (PDF) (0) | 2012.06.25 |
Win32 API help file (0) | 2012.06.23 |
(C++) __asm int 3; (0) | 2012.06.23 |