Crystal Space
Welcome, Guest. Please login or register.
September 02, 2014, 09:26:41 pm

Login with username, password and session length
Search:     Advanced search
9009 Posts in 2043 Topics by 8379 Members
Latest Member: Hamlock3
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Linking Errors Due to Environment
« previous next »
Pages: [1] Print
Author Topic: Linking Errors Due to Environment  (Read 2028 times)
jwir3
Administrator
Newbie
*****
Posts: 13


6420596 scottj@cs.umn.edu
View Profile WWW Email
« on: December 24, 2007, 12:01:33 am »

Hi Everyone!

I have the following setup:

Windows XP
nVidia GeForce 8800 GTS
CSWin32Libs Version 1.3
Current CrystalSpace Development Version (SVN Trunk Source)
Current CEL Development Version (SVN Trunk Source)
Microsoft Visual C++ 8 (Visual Studio 2005 Express Edition)

I am having trouble compiling my project, Eridanus.  The errors have only happened recently, but I can't compile known working versions of the Eridanus source tree, either.  Something must be messed up with my environment, as I previously could compile them, and others on my team can compile both the current version and the new version.  Crystal Space and CEL compile fine, and all of the demo programs run correctly.  CEL and CRYSTAL environment variables have been set correctly.

I am getting the following errors when attempting to compile:
2>Linking...
2>apperidanus.obj : error LNK2001: unresolved external symbol "private: static char * csApplicationFramework::m_ApplicationStringName" (?m_ApplicationStringName@csApplicationFramework@@0PADA)
2>eridanusbaseclasses.obj : error LNK2001: unresolved external symbol "private: static char * csApplicationFramework::m_ApplicationStringName" (?m_ApplicationStringName@csApplicationFramework@@0PADA)
2>eridanusplayer.obj : error LNK2001: unresolved external symbol "private: static char * csApplicationFramework::m_ApplicationStringName" (?m_ApplicationStringName@csApplicationFramework@@0PADA)
2>eridanusworld.obj : error LNK2001: unresolved external symbol "private: static char * csApplicationFramework::m_ApplicationStringName" (?m_ApplicationStringName@csApplicationFramework@@0PADA)
2>apperidanus.obj : error LNK2001: unresolved external symbol "protected: static struct iObjectRegistry * csApplicationFramework::object_reg" (?object_reg@csApplicationFramework@@1PAUiObjectRegistry@@A)
2>eridanusbaseclasses.obj : error LNK2001: unresolved external symbol "protected: static struct iObjectRegistry * csApplicationFramework::object_reg" (?object_reg@csApplicationFramework@@1PAUiObjectRegistry@@A)
2>eridanusplayer.obj : error LNK2001: unresolved external symbol "protected: static struct iObjectRegistry * csApplicationFramework::object_reg" (?object_reg@csApplicationFramework@@1PAUiObjectRegistry@@A)
2>eridanusworld.obj : error LNK2019: unresolved external symbol "protected: static struct iObjectRegistry * csApplicationFramework::object_reg" (?object_reg@csApplicationFramework@@1PAUiObjectRegistry@@A) referenced in function __ehhandler$?PlaceMesh@EridanusWorld@@QAE_NPBD0ABVcsVector3@@0@Z
2>libceltool_d.lib(initapp.obj) : error LNK2019: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A) referenced in function "public: static char const * __cdecl iCommandLineParser::InterfaceTraits::GetName(void)" (?GetName@InterfaceTraits@iCommandLineParser@@SAPBDXZ)
2>apperidanus.obj : error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)
2>eridanusbaseclasses.obj : error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)
2>eridanusplayer.obj : error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)
2>eridanusworld.obj : error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)
2>..\..\..\bin\eridanus.exe : fatal error LNK1120: 3 unresolved externals
2>Build log was saved at "file://d:\Source\eridanus.old\out\debug8\build\apperidanus\BuildLog.htm"
2>apperidanus - 14 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 1 skipped ==========

I have tried uninstalling and re-installing MSVC, Microsoft Platform SDK, and even deleting and recompiling both CEL and CrystalSpace.  None of these have helped.  I have verified that libcrystalspace_d.lib and libceltool_d.lib are in the project configurations.  I am somewhat at my wit's end with how to correct these errors.  Any help with this would be greatly appreciated!

Thanks,

~Scott Johnson
Logged
jwir3
Administrator
Newbie
*****
Posts: 13


6420596 scottj@cs.umn.edu
View Profile WWW Email
« Reply #1 on: December 24, 2007, 08:45:49 pm »

I was able to fix this problem.  Apparently, CS_BUILD_SHARED_LIBS is required in the preprocessor definitions section of the project.

~Scott
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.168 seconds with 13 queries.