September 6th, 2005 06:44 AM
C coding problem
Hi I have a piece of code which goes like.
The file containing the above code also contains the definations pf t_disk_abc, t_xyz.
The above code compiles fine in VC 6.0. I was trying to compile the same using MnGW and dev-c++ compiler.
The error that I get on compilation is
syntax error before "u_abc_e"
syntax error before '}' token
Now the fact that there is no syntax error in the code, as the code compiles OK with VC, makes me think that the problem is somewhere else.
There are numerous other errors,but this is the first one of this kind.
Most of the errors (now resolved) were because of 'stray /26 character'. There was no unix to dos file transfer, but anyways it was curious, and now has been resolved.
Is it something to do with the C standard, I tried compiling with -ansi option, -std=c99 option and default option. The error in all the cases remains same.
There are no library dependecy or other such issues.
I understand that this might be a very vague problem report. Please let me know what kind of details you guys would like me to put here, and I will do the same.