Compile error

Pioneer is an open-ended space adventure game. Explore the galaxy, make your fortune trading between systems, or work for the various factions fighting for power, freedom or self-determination.
Homepage: http://pioneerspacesim.net/
IRC: http://pioneerspacesim.net/irc
Downloads: https://pioneerspacesim.net/page/download/
Post Reply
shenle
Private
Posts: 70
Joined: Mon Jan 24, 2011 10:16 pm

Compile error

Post by shenle »

I just tried to compile a fresh clone of the git repository (MSVC++ 2008 pro, Windows). I get the following linker errors:
Code:
1>Linking...1>GalacticView.obj : error LNK2019: unresolved external symbol "public: void __thiscall Gui::LabelSet::Add(class std::basic_string<char,struct std::char_traits,class std::allocator >,class sigc::slot,float,float)" (?Add@LabelSet@Gui@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$slot@XUnil@sigc@@U12@U12@U12@U12@U12@U12@@sigc@@MM@Z) referenced in function "private: void __thiscall GalacticView::PutLabels(class vector3)" (?PutLabels@GalacticView@@AAEXV?$vector3@N@@@Z)1>SectorView.obj : error LNK2001: unresolved external symbol "public: void __thiscall Gui::LabelSet::Add(class std::basic_string<char,struct std::char_traits,class std::allocator >,class sigc::slot,float,float)" (?Add@LabelSet@Gui@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$slot@XUnil@sigc@@U12@U12@U12@U12@U12@U12@@sigc@@MM@Z)1>SystemView.obj : error LNK2001: unresolved external symbol "public: void __thiscall Gui::LabelSet::Add(class std::basic_string<char,struct std::char_traits,class std::allocator >,class sigc::slot,float,float)" (?Add@LabelSet@Gui@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$slot@XUnil@sigc@@U12@U12@U12@U12@U12@U12@@sigc@@MM@Z)1>WorldView.obj : error LNK2001: unresolved external symbol "public: void __thiscall Gui::LabelSet::Add(class std::basic_string<char,struct std::char_traits,class std::allocator >,class sigc::slot,float,float)" (?Add@LabelSet@Gui@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$slot@XUnil@sigc@@U12@U12@U12@U12@U12@U12@@sigc@@MM@Z)1>GalacticView.obj : error LNK2019: unresolved external symbol "public: void __thiscall Gui::LabelSet::Clear(void)" (?Clear@LabelSet@Gui@@QAEXXZ) referenced in function "public: virtual void __thiscall GalacticView::Draw3D(void)" (?Draw3D@GalacticView@@UAEXXZ)1>SectorView.obj : error LNK2001: unresolved external symbol "public: void __thiscall Gui::LabelSet::Clear(void)" (?Clear@LabelSet@Gui@@QAEXXZ)1>SystemView.obj : error LNK2001: unresolved external symbol "public: void __thiscall Gui::LabelSet::Clear(void)" (?Clear@LabelSet@Gui@@QAEXXZ)1>WorldView.obj : error LNK2001: unresolved external symbol "public: void __thiscall Gui::LabelSet::Clear(void)" (?Clear@LabelSet@Gui@@QAEXXZ)1>GalacticView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::Draw(void)" (?Draw@LabelSet@Gui@@UAEXXZ)1>SectorView.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::Draw(void)" (?Draw@LabelSet@Gui@@UAEXXZ) referenced in function "public: __thiscall sigc::internal::typed_slot_rep<struct sigc::bind_functor<-1,class sigc::bound_mem_functor3,int,int,int,struct sigc::nil,struct sigc::nil,struct sigc::nil,struct sigc::nil> >::typed_slot_rep<struct sigc::bind_functor<-1,class sigc::bound_mem_functor3,int,int,int,struct sigc::nil,struct sigc::nil,struct sigc::nil,struct sigc::nil> >(struct sigc::internal::typed_slot_rep<struct sigc::bind_functor<-1,class sigc::bound_mem_functor3,int,int,int,struct sigc::nil,struct sigc::nil,struct sigc::nil,struct sigc::nil> > const &)" (??0?$typed_slot_rep@U?$bind_functor@$0?0V?$bound_mem_functor3@XVSectorView@@HHH@sigc@@HHHUnil@2@U32@U32@U32@@sigc@@@internal@sigc@@QAE@ABU012@@Z)1>SystemView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::Draw(void)" (?Draw@LabelSet@Gui@@UAEXXZ)1>WorldView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::Draw(void)" (?Draw@LabelSet@Gui@@UAEXXZ)1>GalacticView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::GetSizeRequested(float * const)" (?GetSizeRequested@LabelSet@Gui@@UAEXQAM@Z)1>SectorView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::GetSizeRequested(float * const)" (?GetSizeRequested@LabelSet@Gui@@UAEXQAM@Z)1>SystemView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::GetSizeRequested(float * const)" (?GetSizeRequested@LabelSet@Gui@@UAEXQAM@Z)1>WorldView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Gui::LabelSet::GetSizeRequested(float * const)" (?GetSizeRequested@LabelSet@Gui@@UAEXQAM@Z)1>GalacticView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Gui::LabelSet::OnMouseDown(struct Gui::MouseButtonEvent *)" (?OnMouseDown@LabelSet@Gui@@UAE_NPAUMouseButtonEvent@2@@Z)1>SectorView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Gui::LabelSet::OnMouseDown(struct Gui::MouseButtonEvent *)" (?OnMouseDown@LabelSet@Gui@@UAE_NPAUMouseButtonEvent@2@@Z)1>SystemView.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Gui::LabelSet::OnMouseDown(struct Gui::MouseButtonEvent *)" (?OnMouseDown@LabelSet@Gui@@UAE_NPAUMouseButtonEvent@2@@Z)1>WorldView.obj : error LNK2019: unresolved external symbol "public: virtual bool __thiscall Gui::LabelSet::OnMouseDown(struct Gui::MouseButtonEvent *)" (?OnMouseDown@LabelSet@Gui@@UAE_NPAUMouseButtonEvent@2@@Z) referenced in function __ehhandler$??0message_t@MsgLogWidget@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Type@1@@Z1>WorldView.obj : error LNK2019: unresolved external symbol "public: __thiscall Gui::MeterBar::MeterBar(float,char const *,class Color const &)" (??0MeterBar@Gui@@QAE@MPBDABVColor@@@Z) referenced in function "public: __thiscall WorldView::WorldView(void)" (??0WorldView@@QAE@XZ)1>..\..\pioneer-msvc-9.0_release.exe : fatal error LNK1120: 6 unresolved externals1>Build log was saved at "file://c:\dls\ffe\pioneer\pioneer\win32\vc2008\Release\BuildLog.htm"1>pioneer-msvc-9.0 - 22 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Also, the alpha 6.1 binary downloaded from the project page crashes - starts simulating the evolution of the universe at 4.5 billion years ( :) ), then exits. I find the following in stderr:
Code:
PANIC: unprotected error in call to Lua API (bad argument #-1 (string expected, got nil))
ollobrain
Private
Posts: 561
Joined: Tue Jan 04, 2011 9:40 am

RE: Compile error

Post by ollobrain »

the game is well past alpha 7.5 almost at 8 suggest u get a newer compile
shenle
Private
Posts: 70
Joined: Mon Jan 24, 2011 10:16 pm

RE: Compile error

Post by shenle »

Thanks, that is exactly what I am trying to do. The current code as of yesterday evening gives me the errors above. There is no other more recent binary compiled for Windows than alpha 6.1 (the one posted on pioneer.sourceforge.net). Again, the current revision of the git repository compiles but gives me the linker errors above.(edit) found the alpha7 binary on this forum, it crashes all the same with the same "PANIC: unprotected error in call to Lua API (bad argument #-1 (string expected, got nil))" error.
s2odan
Private
Posts: 1212
Joined: Sun Mar 22, 2009 9:50 pm

RE: Compile error

Post by s2odan »

It sounds like you have installed them over different versions. They must be installed to seperate fresh directories with nothing else in there.There have been some changes to the .luas for ships over the last version and now in the current source code too. As such the old ones will not work with the new and vice versa.
shenle
Private
Posts: 70
Joined: Mon Jan 24, 2011 10:16 pm

RE: Compile error

Post by shenle »


s2odan wrote:
It sounds like you have installed them over different versions. They must be installed to seperate fresh directories with nothing else in there.There have been some changes to the .luas for ships over the last version and now in the current source code too. As such the old ones will not work with the new and vice versa.
Perhaps that's it for the binary.Still doesn't explain the linker errors.
ollobrain
Private
Posts: 561
Joined: Tue Jan 04, 2011 9:40 am

RE: Compile error

Post by ollobrain »

makes sense new install then on the compile
s2odan
Private
Posts: 1212
Joined: Sun Mar 22, 2009 9:50 pm

RE: Compile error

Post by s2odan »

Yes thats only for actually playing the game.If you can post a few more lines that appear above that linking error then maybe I can see what's gone wrong.Nomally the file listed above that is either missing or incorrect in some way.
shenle
Private
Posts: 70
Joined: Mon Jan 24, 2011 10:16 pm

RE: Compile error

Post by shenle »

Here's the whole build log attached.
tomm
Private
Posts: 129
Joined: Sat Mar 06, 2010 1:06 pm

RE: Compile error

Post by tomm »

You need to add GuiMeterBar.cpp and GuiLabelSet.cpp to the project. I haven't done this to the msvc project file because I develop on Linux. (The files are there of course.)
shenle
Private
Posts: 70
Joined: Mon Jan 24, 2011 10:16 pm

RE: Compile error

Post by shenle »

Yup, that did it. Thanks!
Post Reply

Return to “Pioneer”