Macro expansion: GCC 3.4.4
Nick Roberts
nickrob@snap.net.nz
Wed Nov 9 02:54:00 GMT 2005
Using gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2), enum doesn't work and I
see a work around is to use -fno-eliminate-unused-debug-types.
I also find that macro expansion doesn't work"
In myprog.c: #define NCR 4
cc -g3 -o myprog myprog.c myprint.o -lm
(gdb) b main
Breakpoint 1 at 0x80484b9: file myprog.c, line 52.
(gdb) run
Starting program: /home/nickrob/myprog
Breakpoint 1, main (argc=1, argv=0xfee4d1b4) at myprog.c:52
52 int i, n, m[10]={0,1,4,9,16,25,36,49,64,81};
(gdb) p NCR
No symbol "NCR" in current context.
Is there a work around for this too?
Thanks,
Nick
More information about the Gcc-help
mailing list