Ok renaming some files worked, and now i get the same kind of errors which Acidd reported a few posts back:
VFSHandler.obj : error LNK2001: unresolved external symbol...
and loads of others all concerning .obj stuff.
So Acidd you said you solved it by adding some source files to the project.
How did you find which files were'nt compiling/fix it?
so here, it's looking for a class called CIconHandler, but can't find it. So search through your spring source dir for a file containing that class's name (in this case it's the file rts/Rendering/IconHandler.cpp and the header). Then just drag the file into the 'solution explorer' in the right place. VS should then compile the class at build and not complain about unresolved external symbol.
Secondly, there were a few functions that come from libraries that not in the spring source. These are libraries from the Windows platform SDK and the DirectX SDK. For example,
Game.obj : error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" (?ConvertStringToBSTR@_com_util@@YGPA_WPBD@Z) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" (??0Data_t@_bstr_t@@QAE@PBD@Z)
Here, I searched google for "ConvertStringToBSTR" and found other people on other projects had the same problem. For some reason, I needed to explicitly add comsuppw.lib to the library files in project properties->configuration->linker->input files->additional dependancies
You will probably have to do the same with dsound.lib.
Other things I had to do get rid of other errors:
You'll also need to add the paths for the DirectX and win platform SDK headers and libraries into the project configuration if you havent already:
Joined: 19 Aug 2004, 16:38 Location: Togliatti, Russia
Well, I told JC to commit whatever I had uploaded so I could painlessly nuke my working copy and re-checkout, it looks like it got fudged up somehow. Then again, it might be just my PC, and/or the SmartSVN thingy, but I'll reinstall the OS as soon as it crashes again, so I hope to solve those problems eventually..
Not sure if I've done anything wrong... I have successfully built spring from the latest svn, however when I play a game with the built executable, either using random enemies script, air combat test or with an ai ( kai/ntai) I get a hard crash and reboot....
Joined: 19 Nov 2004, 20:38 Location: in die buerse al sonder naet,daer men die beyaert mede slaet.
scons + mingw returns this for me at what I think is the end of the compilation process:
build\rts\lib\minizip\minizip.o(.text+0xc9):minizip.c: multiple definition of `d o_banner' build\rts\lib\minizip\miniunz.o(.text+0x1e8):miniunz.c: first defined here build\rts\lib\minizip\minizip.o(.text+0xe9):minizip.c: multiple definition of `d o_help' build\rts\lib\minizip\miniunz.o(.text+0x208):miniunz.c: first defined here build\rts\lib\minizip\minizip.o(.text+0x1e0):minizip.c: multiple definition of ` main' build\rts\lib\minizip\miniunz.o(.text+0x967):miniunz.c: first defined here collect2: ld returned 1 exit status scons: *** [game\spring.exe] Error 1 scons: building terminated because of errors.
I'm quite new to this, so I'm not sure how to solve the problem. Any tips would be appreciated.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum