Strange Compilation Problem

Strange Compilation Problem

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Fengshui
Posts: 9
Joined: 13 Mar 2008, 21:40

Strange Compilation Problem

Post by Fengshui »

Hi, I started having a weird problem last night and being fairly new to c++ I cannot figured it out. I have been compiling the 76b1 source code just fine for the past couple weeks and have written my own global ai's all worked fine until last night. I tried to add two files to the 'RTS' project and when I compiled I got a ton of syntax errors from imagehlp.h Now I didn't change anything even remotely related so how am I suddenly getting these errors? Here is what they look like

C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(179) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(180) : error C2143: syntax error : missing ')' before '*'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(180) : error C2143: syntax error : missing ';' before '*'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(180) : error C2371: 'STDCALL' : redefinition; different basic types
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(98) : see declaration of 'STDCALL'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(180) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(254) : error C2061: syntax error : identifier 'PIMAGEHLP_STATUS_ROUTINE'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(276) : error C2061: syntax error : identifier 'PREAD_PROCESS_MEMORY_ROUTINE'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(308) : error C2061: syntax error : identifier 'LPWIN_CERTIFICATE'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(311) : error C2061: syntax error : identifier 'LPWIN_CERTIFICATE'
C:\Documents and Settings\Administrator\Desktop\spring_0.76b1_src\spring_0.76b1\vclibs\include\imagehlp.h(312) : error C2061: syntax error : identifier 'LPWIN_CERTIFICATE'
..\..\System\Platform\Win\CrashHandler.cpp(83) : error C2660: 'StackWalk' : function does not take 9 arguments

It goes on and on with the syntax errors in imagehlp. The other thing was when I removed the files I had added and changed everything back to how it had been I still get these errors and can no longer compile the rts project :( I am working in vc8 and using the 76b1 source I downloaded and not svn.
Thank you to anyone who can help!
Fengshui
Posts: 9
Joined: 13 Mar 2008, 21:40

Re: Strange Compilation Problem

Post by Fengshui »

Not that I know what the deal is with this but I thought I should post that I solved the problem by just removing CrashHandler.cpp and then I could compile fine.
Post Reply

Return to “Engine”