|
-
September 6th, 2005, 09:57 AM
#3
Senior Member
I am extremly sorry about this, since this is a proprietary code, I changed the variable names (dont wan to get in any trouble), while changng the names I accidently deleted the semi-colon.
I will edit the code, it now becomes
union u_abc_e
{
t_disk_abc disk_log;
t_xyz xyz;
};
As I stated that the code compiles perfectly on VC++, I doubt there could be any actual syntax errors. I was thinkikng it has something to do with the compiler, I am pasting the compile output below (with file names changed).. The code I am woring on is huge 30-40K sloc.
What part of it would you want, I will have to cut some part of it and modify other. Again I dont think that is very important as the problem is not with the code (compiles on other compilers - vc).
Compiler output
gcc.exe -c C:/temp/a.c -o C:/temp/a.o -I"F:/sw_/os/5_2_3"
f:/common/tbl.h:741: error: syntax error before "t_disk_abc"
f://common/tbl.h:743: error: syntax error before '}' token
In file included from f:/amsc.h:96,
from f:/amsc.d:46,
from C:/temp/xxx.c:42:
D:/Dev-Cpp/include/ctype.h:59: error: syntax error before ',' token
In file included from f:/amsc.1d:138,
from C:/temp/abc.c:42:
D:/Dev-Cpp/include/string.h:36: error: syntax error before ',' token
D:/Dev-Cpp/include/string.h:40: error: syntax error before ',' token
D:/Dev-Cpp/include/string.h:41: error: syntax error before '*' token
D:/Dev-Cpp/include/string.h:42: error: syntax error before ')' token
D:/Dev-Cpp/include/string.h:45: error: syntax error before '*' token
D:/Dev-Cpp/include/string.h:50: error: syntax error before '*' token
.
.
.
D:/Dev-Cpp/include/string.h:105: error: syntax error before '*' token
D:/Dev-Cpp/include/string.h:106: error: syntax error before '*' token
D:/Dev-Cpp/include/string.h:107: error: syntax error before '*' token
D:/Dev-Cpp/include/string.h:109: error: syntax error before '*' token
D:/Dev-Cpp/include/stdlib.h: In function `strtof':
D:/Dev-Cpp/include/stdlib.h:314: error: `nptr' undeclared (first use in this function)
.
.
D:/Dev-Cpp/include/stdlib.h:314: error: (Each undeclared identifier is reported only once
D:/Dev-Cpp/include/stdlib.h:314: error: for each function it appears in.)
D:/Dev-Cpp/include/stdlib.h:314: error: `endptr' undeclared (first use in this function)
D:/Dev-Cpp/include/stdlib.h: At top level:
.
.
.
As you can see lots of errrors are in the libraries supplied by Dev-C++ (version 4.9.9.2). MinGW is 3.4.2 version.
I have tried replacing these headers with the VC header files, but the error remains same. I will now try changing to some other minGW version.
Its a real bummer, never have I been stuck so bad.
Better Laugh At Your Own Problems..
Coz...The World Laughs At Them
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|