Unable to build unitsync (taspring_0.40b2_src)

Unable to build unitsync (taspring_0.40b2_src)

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
adeveloper.clan-sy
Posts: 24
Joined: 28 Apr 2005, 00:26

Unable to build unitsync (taspring_0.40b2_src)

Post by adeveloper.clan-sy »

When attempting to build, I get the following errors:

fatal error C1083: Cannot open include file: 'float3.h': No such file or directory
fatal error C1083: Cannot open include file: 'HpiHandler.h': No such file or directory
fatal error C1083: Cannot open include file: 'FileHandler.h': No such file or directory
fatal error C1083: Cannot open include file: 'SunParser.h': No such file or directory
unitsync error LNK2019: unresolved external symbol "public: void __cdecl CInfoConsole::AddLine(char const *,...)" (?AddLine@CInfoConsole@@QAAXPBDZZ) referenced in function "public: __thiscall CHpiHandler::CHpiHandler(void)" (??0CHpiHandler@@QAE@XZ)
adeveloper.clan-sy
Posts: 24
Joined: 28 Apr 2005, 00:26

work-around (taspring_0.40b2_src)

Post by adeveloper.clan-sy »

I was able to get unitsync to compile and link by doing the following:

1) Copied the missing float3.h and float3.cpp from taspring_0.40b2_src\rts into taspring_0.40b2_src\unitsync

2) Added float3.h and float3.cpp into the unitsync solution tree

3) Copied the missing HpiHandler.h from taspring_0.40b2_src\rts into taspring_0.40b2_src\unitsync

5) Copied the missing FileHandler.h from taspring_0.40b2_src\rts into taspring_0.40b2_src\unitsync

6) Copied the missing SunParser.h from taspring_0.40b2_src\rts into taspring_0.40b2_src\unitsync

Note: It seems the solution points to the HpiHandler.h/cpp and FileHandler.h/cpp and SunParser.h/cpp in the taspring_0.40b2_src\rt but it seems to work

7) To fix the linker error, I had to double click on the HpiHander.cpp item in the solution tree and edit the file. I had to comment out line 56. (possible bug in MSVC++ .NET 2003 ?)

8 ) Build the unitsync.sln and it will put unitsync.lib into the taspring_0.40b2_src\unitsync\debug directory


The unitsync.dll was missing from the debug directory, so I had to go into Project|Properties...|Configuration Properies|General and reforce th e configuration type to "Dynamic LIbrary (.DLL)". I then rebuilt the solution and it created the unitsync.dll into the taspring_0.40b2_src\unitsync\debug directory. I have not yet duplicated this on another development workstation, so this could be specific to my installation of MSVC++ .NET 2003.
Sean Mirrsen
Posts: 578
Joined: 19 Aug 2004, 17:38

Post by Sean Mirrsen »

I had to set a new include path to the main folder of the source code, to get things actually compiling.
Post Reply

Return to “Engine”