Compile error
Posted: Mon Jan 24, 2011 10:21 pm
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))
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 (
Code:
PANIC: unprotected error in call to Lua API (bad argument #-1 (string expected, got nil))