LCDHost Forums

Sourcecode => memwatch => Topic started by: farmerdoug on 2010-03-31 23:43:33

Title: compiler error
Post by: farmerdoug on 2010-03-31 23:43:33
My program compiles and runs in Xcode without -DM
EMWATCH -NMEMWATHCH_STUDIO flags but won't compile from a makefile.
Any help would be appreciated.

bash-3.2$ make
gcc -Dmain -Wall  -g    pcr.h memwatch.h main.c memwatch.c  pcr.o   -o main  -DM
EMWATCH -NMEMWATHCH_STUDIO
main.c:6: error: expected identifier or '(' before numeric constant
make: *** [main] Error 1
Title: compiler error
Post by: SirReal on 2010-04-01 14:19:49
So what's in main.c lines 1 through 6?