Crystal Space
Welcome, Guest. Please login or register.
December 22, 2014, 01:13:29 pm

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9302 Members
Latest Member: Janrdym
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Link error
« previous next »
Pages: [1] Print
Author Topic: Link error  (Read 3641 times)
bruceleechop
Newbie
*
Posts: 3


View Profile
« on: October 04, 2006, 09:16:38 pm »

Hello and thanks for your time!

I am using:

cs-pseudo-stable-2006-01-27
cs-win32libs-0.99r0_022
msvc8 2005
win xp pro

During compilation of Simple1 and 2 I recieve these link errors:

1>Compiling...
1>simple2.cpp
1>Compiling manifest to resources...
1>Linking...
1>simple2.obj : error LNK2001: unresolved external symbol "void __cdecl csStaticVarCleanup_csutil(void (__cdecl*)(void))" (?csStaticVarCleanup_csutil@@YAXP6AXXZ@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall csBaseEventHandler::~csBaseEventHandler(void)" (??1csBaseEventHandler@@UAE@XZ) referenced in function __unwindfunclet$??0Simple@@QAE@XZ$0
1>simple2.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall csApplicationFramework::~csApplicationFramework(void)" (??1csApplicationFramework@@UAE@XZ) referenced in function __unwindfunclet$??0Simple@@QAE@XZ$0
1>simple2.obj : error LNK2019: unresolved external symbol "protected: __thiscall csBaseEventHandler::csBaseEventHandler(void)" (??0csBaseEventHandler@@IAE@XZ) referenced in function "public: __thiscall Simple::Simple(void)" (??0Simple@@QAE@XZ)
1>simple2.obj : error LNK2019: unresolved external symbol "protected: __thiscall csApplicationFramework::csApplicationFramework(void)" (??0csApplicationFramework@@IAE@XZ) referenced in function "public: __thiscall Simple::Simple(void)" (??0Simple@@QAE@XZ)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::HandleEvent(struct iEvent &)" (?HandleEvent@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnJoystickMove(struct iEvent &)" (?OnJoystickMove@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnJoystickDown(struct iEvent &)" (?OnJoystickDown@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnJoystickUp(struct iEvent &)" (?OnJoystickUp@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnMouseMove(struct iEvent &)" (?OnMouseMove@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnMouseDown(struct iEvent &)" (?OnMouseDown@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnMouseUp(struct iEvent &)" (?OnMouseUp@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnMouseClick(struct iEvent &)" (?OnMouseClick@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnMouseDoubleClick(struct iEvent &)" (?OnMouseDoubleClick@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall csBaseEventHandler::OnUnhandledEvent(struct iEvent &)" (?OnUnhandledEvent@csBaseEventHandler@@MAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall csBaseEventHandler::Frame(void)" (?Frame@csBaseEventHandler@@MAEXXZ)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall csBaseEventHandler::PreProcessFrame(void)" (?PreProcessFrame@csBaseEventHandler@@MAEXXZ)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall csBaseEventHandler::PostProcessFrame(void)" (?PostProcessFrame@csBaseEventHandler@@MAEXXZ)
1>simple2.obj : error LNK2001: unresolved external symbol "private: static char * csApplicationFramework::m_ApplicationStringName" (?m_ApplicationStringName@csApplicationFramework@@0PADA)
1>simple2.obj : error LNK2019: unresolved external symbol "class csMatrix3 __cdecl operator*(class csMatrix3 const &,class csMatrix3 const &)" (??D@YA?AVcsMatrix3@@ABV0@0@Z) referenced in function "private: virtual void __thiscall Simple::ProcessFrame(void)" (?ProcessFrame@Simple@@EAEXXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: __thiscall csXRotMatrix3::csXRotMatrix3(float)" (??0csXRotMatrix3@@QAE@M@Z) referenced in function "private: virtual void __thiscall Simple::ProcessFrame(void)" (?ProcessFrame@Simple@@EAEXXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: __thiscall csYRotMatrix3::csYRotMatrix3(float)" (??0csYRotMatrix3@@QAE@M@Z) referenced in function "private: virtual void __thiscall Simple::ProcessFrame(void)" (?ProcessFrame@Simple@@EAEXXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: class csMatrix3 __thiscall csMatrix3::GetTranspose(void)const " (?GetTranspose@csMatrix3@@QBE?AV1@XZ) referenced in function "public: __thiscall csOrthoTransform::csOrthoTransform(class csMatrix3 const &,class csVector3 const &)" (??0csOrthoTransform@@QAE@ABVcsMatrix3@@ABVcsVector3@@@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: class csMatrix3 & __thiscall csMatrix3::operator*=(float)" (??XcsMatrix3@@QAEAAV0@M@Z) referenced in function "public: class csMatrix3 __thiscall csMatrix3::GetInverse(void)const " (?GetInverse@csMatrix3@@QBE?AV1@XZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: static unsigned int __cdecl csKeyEventHelper::GetCookedCode(struct iEvent const *)" (?GetCookedCode@csKeyEventHelper@@SAIPBUiEvent@@@Z) referenced in function "private: virtual bool __thiscall Simple::OnKeyboard(struct iEvent &)" (?OnKeyboard@Simple@@EAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: static enum _csKeyEventType __cdecl csKeyEventHelper::GetEventType(struct iEvent const *)" (?GetEventType@csKeyEventHelper@@SA?AW4_csKeyEventType@@PBUiEvent@@@Z) referenced in function "private: virtual bool __thiscall Simple::OnKeyboard(struct iEvent &)" (?OnKeyboard@Simple@@EAE_NAAUiEvent@@@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "void __cdecl CrystalSpace::Debug::AssertMessage(char const *,char const *,int,char const *)" (?AssertMessage@Debug@CrystalSpace@@YAXPBD0H0@Z) referenced in function "public: static unsigned long __cdecl csEventNameRegistry::GetID(struct iObjectRegistry *,class csString const &)" (?GetID@csEventNameRegistry@@SAKPAUiObjectRegistry@@ABVcsString@@@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "protected: static struct iObjectRegistry * csApplicationFramework::object_reg" (?object_reg@csApplicationFramework@@1PAUiObjectRegistry@@A)
1>simple2.obj : error LNK2019: unresolved external symbol "public: bool __thiscall csBaseEventHandler::RegisterQueue(struct iObjectRegistry *,unsigned long)" (?RegisterQueue@csBaseEventHandler@@QAE_NPAUiObjectRegistry@@K@Z) referenced in function "public: virtual bool __thiscall Simple::OnInitialize(int,char * * const)" (?OnInitialize@Simple@@UAE_NHQAPAD@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: void __thiscall csBaseEventHandler::Initialize(struct iObjectRegistry *)" (?Initialize@csBaseEventHandler@@QAEXPAUiObjectRegistry@@@Z) referenced in function "public: virtual bool __thiscall Simple::OnInitialize(int,char * * const)" (?OnInitialize@Simple@@UAE_NHQAPAD@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl csInitializer::RequestPlugins(struct iObjectRegistry *,...)" (?RequestPlugins@csInitializer@@SA_NPAUiObjectRegistry@@ZZ) referenced in function "public: virtual bool __thiscall Simple::OnInitialize(int,char * * const)" (?OnInitialize@Simple@@UAE_NHQAPAD@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)
1>simple2.obj : error LNK2019: unresolved external symbol "int __cdecl csPrintfV(char const *,char *)" (?csPrintfV@@YAHPBDPAD@Z) referenced in function "public: static void __cdecl csReporterHelper::ReportV(struct iObjectRegistry *,int,char const *,char const *,char *)" (?ReportV@csReporterHelper@@SAXPAUiObjectRegistry@@HPBD1PAD@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "int __cdecl csStrNCaseCmp(char const *,char const *,unsigned int)" (?csStrNCaseCmp@@YAHPBD0I@Z) referenced in function "public: static void __cdecl csReporterHelper::ReportV(struct iObjectRegistry *,int,char const *,char const *,char *)" (?ReportV@csReporterHelper@@SAXPAUiObjectRegistry@@HPBD1PAD@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "int __cdecl csPrintf(char const *,...)" (?csPrintf@@YAHPBDZZ) referenced in function "public: static void __cdecl csReporterHelper::ReportV(struct iObjectRegistry *,int,char const *,char const *,char *)" (?ReportV@csReporterHelper@@SAXPAUiObjectRegistry@@HPBD1PAD@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: static char const * __cdecl csInitializer::GetDefaultAppID(void)" (?GetDefaultAppID@csInitializer@@SAPBDXZ) referenced in function "public: static char const * __cdecl csApplicationFramework::GetApplicationName(void)" (?GetApplicationName@csApplicationFramework@@SAPBDXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl csInitializer::OpenApplication(struct iObjectRegistry *)" (?OpenApplication@csInitializer@@SA_NPAUiObjectRegistry@@@Z) referenced in function "public: virtual bool __thiscall Simple::Application(void)" (?Application@Simple@@UAE_NXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "bool __cdecl csDefaultRunLoop(struct iObjectRegistry *)" (?csDefaultRunLoop@@YA_NPAUiObjectRegistry@@@Z) referenced in function "public: static void __cdecl csApplicationFramework::Run(void)" (?Run@csApplicationFramework@@SAXXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: __thiscall csView::csView(struct iEngine *,struct iGraphics3D *)" (??0csView@@QAE@PAUiEngine@@PAUiGraphics3D@@@Z) referenced in function "private: bool __thiscall Simple::SetupModules(void)" (?SetupModules@Simple@@AAE_NXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: void __thiscall csMatrix3::Identity(void)" (?Identity@csMatrix3@@QAEXXZ) referenced in function "private: void __thiscall Simple::CreateSprites(void)" (?CreateSprites@Simple@@AAEXXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "protected: unsigned int __thiscall csStringBase::ComputeNewSize(unsigned int)" (?ComputeNewSize@csStringBase@@IAEII@Z) referenced in function "protected: virtual void __thiscall csStringFast<36>::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@?$csStringFast@$0CE@@@MAEXI_N@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "protected: virtual void __thiscall csStringBase::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@csStringBase@@MAEXI_N@Z) referenced in function "protected: virtual void __thiscall csStringFast<36>::SetCapacityInternal(unsigned int,bool)" (?SetCapacityInternal@?$csStringFast@$0CE@@@MAEXI_N@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall csStringBase::~csStringBase(void)" (??1csStringBase@@UAE@XZ) referenced in function __unwindfunclet$??0?$csStringFast@$0CE@@@QAE@PBD@Z$0
1>simple2.obj : error LNK2019: unresolved external symbol "public: class csStringBase & __thiscall csStringBase::Append(char const *,unsigned int)" (?Append@csStringBase@@QAEAAV1@PBDI@Z) referenced in function "public: __thiscall csStringFast<36>::csStringFast<36>(char const *)" (??0?$csStringFast@$0CE@@@QAE@PBD@Z)
1>simple2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall csStringBase::Free(void)" (?Free@csStringBase@@UAEXXZ)
1>simple2.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall csStringBase::ShrinkBestFit(void)" (?ShrinkBestFit@csStringBase@@UAEXXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "char * __cdecl csStrNew(char const *)" (?csStrNew@@YAPADPBD@Z) referenced in function "public: virtual char * __thiscall csStringFast<36>::Detach(void)" (?Detach@?$csStringFast@$0CE@@@UAEPADXZ)
1>simple2.obj : error LNK2019: unresolved external symbol "public: bool __thiscall csApplicationFramework::DoRestart(void)" (?DoRestart@csApplicationFramework@@QAE_NXZ) referenced in function "public: static int __cdecl csApplicationRunner<class Simple>::Run(int,char * * const)" (?Run@?$csApplicationRunner@VSimple@@@@SAHHQAPAD@Z)
1>simple2.obj : error LNK2019: unresolved external symbol "public: int __thiscall csApplicationFramework::Main(int,char * * const)" (?Main@csApplicationFramework@@QAEHHQAPAD@Z) referenced in function "public: static int __cdecl csApplicationRunner<class Simple>::Run(int,char * * const)" (?Run@?$csApplicationRunner@VSimple@@@@SAHHQAPAD@Z)
1>C:\CS\Simple2\Debug\Simple2.exe : fatal error LNK1120: 49 unresolved externals
1>Build log was saved at "file://c:\CS\Simple2\Simple2\Debug\BuildLog.htm"
1>Simple2 - 50 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


It seems that I am not linked to a necessary lib however I am linked to every possible lib that I know of. I have tried different versions of the cswin32libs package as well as reinstalled and compiled CS twice. I have read the manual and looked at other users' posts with similar problems. I have been working on this for days, please help.

thanks again for your time,
-bruceleechop

« Last Edit: October 04, 2006, 09:20:21 pm by bruceleechop » Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: October 05, 2006, 05:33:56 am »

That's the wrong version of the winlibs package. For pseudo-stable you must use version 18 (as is stated on the CS download page).

Greetings,
Logged
bruceleechop
Newbie
*
Posts: 3


View Profile
« Reply #2 on: October 05, 2006, 07:32:27 pm »

Hi again and thanks for your help.

However, I have tried using version 18 and just reinstalled it and tried again. No luck. If you have any more insight that could prove helpful it would be greatly appreciated. Until then, I am going to reinstall the whole shabang and hope that it fixes itself.

Have a good day,
blc
Logged
paganwarrior
Jr. Member
**
Posts: 68


View Profile Email
« Reply #3 on: October 08, 2006, 02:32:43 pm »

Can see your comipiler the winlibs package? (Tools->Options->Projects and Solutions->VC++ directories)
Logged
bruceleechop
Newbie
*
Posts: 3


View Profile
« Reply #4 on: October 10, 2006, 05:48:13 am »

I'm sorry. I'm not sure that I understand your question. I have added winlibs crystalspacelibs to the VC++ directories.
Logged
paganwarrior
Jr. Member
**
Posts: 68


View Profile Email
« Reply #5 on: October 11, 2006, 02:05:05 pm »

So...

You've installed cswinlibs-018.
You've added cswinlibs to the VC++ directories (include and lib files)

In that case you can compile all CS app and dll.

When you try to compile Simple1 and simple2 as an external project, follow this guide:

http://crystalspace3d.org/docs/online/manual/cs_4.21.2.php#4.21.2




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 5.214 seconds with 15 queries.