Notifications
Clear all

To all SSC Station occupants

Thank you for the donations over the past year (2024), it is much appreciated. I am still trying to figure out how to migrate the forums to another community software (probably phpbb) but in the meantime I have updated the forum software to the latest version. SSC has been around a while so their is some very long time members here still using the site, thanks for making SSC home and sorry I haven't been as vocal as I should be in the forums I will try to improve my posting frequency.

Thank you again to all of the members that do take the time to donate a little, it helps keep this station functioning on the outer reaches of space.

-D1-

Compile error

(@shenle)
Trusted Member

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@@Z
1>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 externals
1>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))
Quote
Topic starter Posted : January 24, 2011 18:21
(@ollobrain)
Honorable Member

the game is well past alpha 7.5 almost at 8 suggest u get a newer compile

ReplyQuote
Posted : January 24, 2011 19:29
(@shenle)
Trusted Member

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.

ReplyQuote
Topic starter Posted : January 25, 2011 03:24
(@s2odan)
Noble Member

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.

ReplyQuote
Posted : January 25, 2011 13:40
(@shenle)
Trusted Member
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.

ReplyQuote
Topic starter Posted : January 25, 2011 14:18
(@ollobrain)
Honorable Member

makes sense new install then on the compile

ReplyQuote
Posted : January 25, 2011 14:19
(@s2odan)
Noble Member

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.

ReplyQuote
Posted : January 25, 2011 14:34
(@shenle)
Trusted Member

Here's the whole build log attached.

ReplyQuote
Topic starter Posted : January 25, 2011 15:30
 tomm
(@tomm)
Estimable Member

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.)

ReplyQuote
Posted : January 25, 2011 16:19
(@shenle)
Trusted Member

Yup, that did it. Thanks!

ReplyQuote
Topic starter Posted : January 25, 2011 17:44