Hello
I have searched the forums for information about porting smaug back to linux, the only thing I found stated that it would work as long as WIN32 was not defined. Not sure where or if there is a definition stating the system type ( I have been unable to find it ).
Anyway, I have made many changes to the source and do not wish to start over now that I have a linux box. Everything was compiling fine with VC++ 6 on my XP pro computer.
Nick I was hoping you could help me out, I hate to ask this of you but the past week has left me without any options and feeling quite desperate.
Any input would be GREATLY appreciated.
I am currently running Slackware Linux 8.1
Here are the errors:
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG -DREGEX act_comm.c
In file included from act_comm.c:32:
mud.h:866: parse error before `|'
mud.h:866: stray '\' in program
mud.h:873: warning: type defaults to `int' in declaration of `to_types'
mud.h:873: warning: data definition has no type or storage class
mud.h:3155: parse error before `do'
mud.h:3155: stray '\' in program
mud.h:3156: stray '\' in program
mud.h:3157: stray '\' in program
mud.h:3158: stray '\' in program
mud.h:3159: stray '\' in program
mud.h:3160: parse error before string constant
mud.h:3160: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3160: warning: data definition has no type or storage class
mud.h:3160: stray '\' in program
mud.h:3161: warning: type defaults to `int' in declaration of `abort'
mud.h:3161: conflicting types for `abort'
/usr/include/stdlib.h:561: previous declaration of `abort'
mud.h:3161: warning: data definition has no type or storage class
mud.h:3161: stray '\' in program
mud.h:3162: parse error before `}'
mud.h:3162: stray '\' in program
mud.h:3166: stray '\' in program
mud.h:3167: stray '\' in program
mud.h:3168: stray '\' in program
mud.h:3169: stray '\' in program
mud.h:3170: stray '\' in program
mud.h:3171: parse error before string constant
mud.h:3171: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3171: warning: data definition has no type or storage class
mud.h:3171: stray '\' in program
mud.h:3172: warning: type defaults to `int' in declaration of `abort'
mud.h:3172: warning: data definition has no type or storage class
mud.h:3172: stray '\' in program
mud.h:3173: parse error before `}'
mud.h:3173: stray '\' in program
mud.h:3178: stray '\' in program
mud.h:3179: stray '\' in program
mud.h:3180: stray '\' in program
mud.h:3181: stray '\' in program
mud.h:3182: stray '\' in program
mud.h:3183: parse error before string constant
mud.h:3183: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3183: warning: data definition has no type or storage class
mud.h:3183: stray '\' in program
mud.h:3184: stray '\' in program
mud.h:3185: stray '\' in program
mud.h:3186: warning: type defaults to `int' in declaration of `point'
mud.h:3186: warning: initialization makes integer from pointer without a cast
mud.h:3186: warning: data definition has no type or storage class
mud.h:3186: stray '\' in program
mud.h:3187: parse error before `}'
mud.h:3194: stray '\' in program
mud.h:3195: stray '\' in program
mud.h:3196: stray '\' in program
mud.h:3197: stray '\' in program
mud.h:3198: stray '\' in program
mud.h:3199: parse error before string constant
mud.h:3199: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3199: warning: data definition has no type or storage class
mud.h:3199: stray '\' in program
mud.h:3200: stray '\' in program
mud.h:3201: stray '\' in program
mud.h:3202: stray '\' in program
mud.h:3203: warning: type defaults to `int' in declaration of `point'
mud.h:3203: redefinition of `point'
mud.h:3186: `point' previously defined here
mud.h:3203: warning: initialization makes integer from pointer without a cast
mud.h:3203: warning: data definition has no type or storage class
mud.h:3203: stray '\' in program
mud.h:3204: parse error before `}'
mud.h:3225: stray '\' in program
mud.h:3226: stray '\' in program
mud.h:3227: stray '\' in program
mud.h:3228: stray '\' in program
mud.h:3229: stray '\' in program
mud.h:3230: stray '\' in program
mud.h:3231: parse error before `->'
mud.h:3231: stray '\' in program
mud.h:3232: parse error before `->'
mud.h:3232: stray '\' in program
mud.h:3233: warning: type defaults to `int' in declaration of `last'
mud.h:3233: warning: initialization makes integer from pointer without a cast
mud.h:3233: warning: data definition has no type or storage class
.
etc ( same errors )
.
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home/rage/smaug/src'
make: *** [all] Error 2
Lothios
I have searched the forums for information about porting smaug back to linux, the only thing I found stated that it would work as long as WIN32 was not defined. Not sure where or if there is a definition stating the system type ( I have been unable to find it ).
Anyway, I have made many changes to the source and do not wish to start over now that I have a linux box. Everything was compiling fine with VC++ 6 on my XP pro computer.
Nick I was hoping you could help me out, I hate to ask this of you but the past week has left me without any options and feeling quite desperate.
Any input would be GREATLY appreciated.
I am currently running Slackware Linux 8.1
Here are the errors:
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG -DREGEX act_comm.c
In file included from act_comm.c:32:
mud.h:866: parse error before `|'
mud.h:866: stray '\' in program
mud.h:873: warning: type defaults to `int' in declaration of `to_types'
mud.h:873: warning: data definition has no type or storage class
mud.h:3155: parse error before `do'
mud.h:3155: stray '\' in program
mud.h:3156: stray '\' in program
mud.h:3157: stray '\' in program
mud.h:3158: stray '\' in program
mud.h:3159: stray '\' in program
mud.h:3160: parse error before string constant
mud.h:3160: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3160: warning: data definition has no type or storage class
mud.h:3160: stray '\' in program
mud.h:3161: warning: type defaults to `int' in declaration of `abort'
mud.h:3161: conflicting types for `abort'
/usr/include/stdlib.h:561: previous declaration of `abort'
mud.h:3161: warning: data definition has no type or storage class
mud.h:3161: stray '\' in program
mud.h:3162: parse error before `}'
mud.h:3162: stray '\' in program
mud.h:3166: stray '\' in program
mud.h:3167: stray '\' in program
mud.h:3168: stray '\' in program
mud.h:3169: stray '\' in program
mud.h:3170: stray '\' in program
mud.h:3171: parse error before string constant
mud.h:3171: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3171: warning: data definition has no type or storage class
mud.h:3171: stray '\' in program
mud.h:3172: warning: type defaults to `int' in declaration of `abort'
mud.h:3172: warning: data definition has no type or storage class
mud.h:3172: stray '\' in program
mud.h:3173: parse error before `}'
mud.h:3173: stray '\' in program
mud.h:3178: stray '\' in program
mud.h:3179: stray '\' in program
mud.h:3180: stray '\' in program
mud.h:3181: stray '\' in program
mud.h:3182: stray '\' in program
mud.h:3183: parse error before string constant
mud.h:3183: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3183: warning: data definition has no type or storage class
mud.h:3183: stray '\' in program
mud.h:3184: stray '\' in program
mud.h:3185: stray '\' in program
mud.h:3186: warning: type defaults to `int' in declaration of `point'
mud.h:3186: warning: initialization makes integer from pointer without a cast
mud.h:3186: warning: data definition has no type or storage class
mud.h:3186: stray '\' in program
mud.h:3187: parse error before `}'
mud.h:3194: stray '\' in program
mud.h:3195: stray '\' in program
mud.h:3196: stray '\' in program
mud.h:3197: stray '\' in program
mud.h:3198: stray '\' in program
mud.h:3199: parse error before string constant
mud.h:3199: warning: type defaults to `int' in declaration of `fprintf'
mud.h:3199: warning: data definition has no type or storage class
mud.h:3199: stray '\' in program
mud.h:3200: stray '\' in program
mud.h:3201: stray '\' in program
mud.h:3202: stray '\' in program
mud.h:3203: warning: type defaults to `int' in declaration of `point'
mud.h:3203: redefinition of `point'
mud.h:3186: `point' previously defined here
mud.h:3203: warning: initialization makes integer from pointer without a cast
mud.h:3203: warning: data definition has no type or storage class
mud.h:3203: stray '\' in program
mud.h:3204: parse error before `}'
mud.h:3225: stray '\' in program
mud.h:3226: stray '\' in program
mud.h:3227: stray '\' in program
mud.h:3228: stray '\' in program
mud.h:3229: stray '\' in program
mud.h:3230: stray '\' in program
mud.h:3231: parse error before `->'
mud.h:3231: stray '\' in program
mud.h:3232: parse error before `->'
mud.h:3232: stray '\' in program
mud.h:3233: warning: type defaults to `int' in declaration of `last'
mud.h:3233: warning: initialization makes integer from pointer without a cast
mud.h:3233: warning: data definition has no type or storage class
.
etc ( same errors )
.
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home/rage/smaug/src'
make: *** [all] Error 2
Lothios