- 论坛徽章:
- 0
|
build app]$ gcc -v
Reading specs from /usr/local/gcc-3.3/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3/specs
Configured with: ../configure --prefix=/usr/local/gcc-3.3 --enable-languages=c,c++
Thread model: posix
gcc version 3.3
#include <stdio.h>
#define D_PRINT(x) fprintf(stdout,x)
#define STRINGFY(x) #@x
int main(int argc ,char ** argv)
{
char c = STRINGFY(H);
putchar(c);
return 0;
}
error:
str.c:4:22: '#' is not followed by a macro parameter
str.c: In function `main':
str.c:8: error: `H' undeclared (first use in this function)
str.c:8: error: (Each undeclared identifier is reported only once
str.c:8: error: for each function it appears in.)
any ideas ,guys ?
thx ![](static/image/smiley/default/icon_smile.gif) |
|