Author Topic: compiler error  (Read 4878 times)

farmerdoug

  • Newbie
  • *
  • Posts: 1
compiler error
« 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

SirReal

  • Administrator
  • Hero Member
  • *****
  • Posts: 735
    • linkdata.se
compiler error
« Reply #1 on: 2010-04-01 14:19:49 »
So what's in main.c lines 1 through 6?
« Last Edit: 2014-04-05 18:47:59 by SirReal »