Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When I try to compile rcssserver 3d in windows (visual studio 2010) I get the following errors :

XML
------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
Build started 4/29/2011 12:31:14 AM.
PrepareForBuild:
  Creating directory "C:\simspark\trunk\rcssserver3d\ebuild\Release\".
InitializeBuildStatus:
  Creating "Win32\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Checking Build System
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/data/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/doc/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/doc/users/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/plugin/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/plugin/soccer/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/plugin/soccermonitor/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/rcssagent3d/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/rcssmonitor3d/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/simspark/trunk/rcssserver3d/ebuild/rcssserver3d/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "Win32\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
  Touching "Win32\Release\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
Build succeeded.
Time Elapsed 00:00:00.70
------ Build started: Project: rcssagent3d, Configuration: Release Win32 ------
Build started 4/29/2011 12:31:15 AM.
PrepareForBuild:
  Creating directory "C:\simspark\trunk\rcssserver3d\ebuild\rcssagent3d\Release\".
InitializeBuildStatus:
  Creating "rcssagent3d.dir\Release\rcssagent3d.unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/simspark/trunk/rcssserver3d/rcssagent3d/CMakeLists.txt
  CMake does not need to re-run because C:\simspark\trunk\rcssserver3d\ebuild\rcssagent3d\CMakeFiles\generate.stamp is up-to-date.
ClCompile:
  naobehavior.cpp
  hoap2behavior.cpp
..\..\rcssagent3d\hoap2behavior.cpp(172): warning C4305: 'initializing' : truncation from 'double' to 'const float'
..\..\rcssagent3d\hoap2behavior.cpp(229): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\hoap2behavior.cpp(241): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\hoap2behavior.cpp(253): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\hoap2behavior.cpp(265): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
  soccerbotbehavior.cpp
..\..\rcssagent3d\soccerbotbehavior.cpp(230): warning C4305: 'initializing' : truncation from 'double' to 'const float'
..\..\rcssagent3d\soccerbotbehavior.cpp(283): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(297): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(309): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(322): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(342): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(358): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(370): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
..\..\rcssagent3d\soccerbotbehavior.cpp(382): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
  soccerbehavior.cpp
  main.cpp
Link:
  main.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall rcss::net::Addr::Addr(unsigned short,unsigned int)" (__imp_??0Addr@net@rcss@@QAE@GI@Z)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_Vector_const_iterator<class std::_Vector_val<class boost::any,class std::allocator<class boost::any> > > const & __thiscall oxygen::Predicate::Iterator::GetIterator(void)const " (__imp_?GetIterator@Iterator@Predicate@oxygen@@QBEABV?$_Vector_const_iterator@V?$_Vector_val@Vany@boost@@V?$allocator@Vany@boost@@@std@@@std@@@std@@XZ)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_Vector_const_iterator<class std::_Vector_val<class boost::any,class std::allocator<class boost::any> > > & __thiscall oxygen::Predicate::Iterator::GetIterator(void)" (__imp_?GetIterator@Iterator@Predicate@oxygen@@QAEAAV?$_Vector_const_iterator@V?$_Vector_val@Vany@boost@@V?$allocator@Vany@boost@@@std@@@std@@@std@@XZ)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_List_const_iterator<class std::_List_val<class oxygen::Predicate,class std::allocator<class oxygen::Predicate> > > __thiscall oxygen::PredicateList::end(void)const " (__imp_?end@PredicateList@oxygen@@QBE?AV?$_List_const_iterator@V?$_List_val@VPredicate@oxygen@@V?$allocator@VPredicate@oxygen@@@std@@@std@@@std@@XZ)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_List_const_iterator<class std::_List_val<class oxygen::Predicate,class std::allocator<class oxygen::Predicate> > > __thiscall oxygen::PredicateList::begin(void)const " (__imp_?begin@PredicateList@oxygen@@QBE?AV?$_List_const_iterator@V?$_List_val@VPredicate@oxygen@@V?$allocator@VPredicate@oxygen@@@std@@@std@@@std@@XZ)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall zeitgeist::ParameterList::AdvanceValue(class std::_Vector_const_iterator<class std::_Vector_val<class boost::any,class std::allocator<class boost::any> > > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (__imp_?AdvanceValue@ParameterList@zeitgeist@@QBE_NAAV?$_Vector_const_iterator@V?$_Vector_val@Vany@boost@@V?$allocator@Vany@boost@@@std@@@std@@@std@@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall zeitgeist::ParameterList::AdvanceValue(class std::_Vector_const_iterator<class std::_Vector_val<class boost::any,class std::allocator<class boost::any> > > &,float &)const " (__imp_?AdvanceValue@ParameterList@zeitgeist@@QBE_NAAV?$_Vector_const_iterator@V?$_Vector_val@Vany@boost@@V?$allocator@Vany@boost@@@std@@@std@@@std@@AAM@Z)
soccerbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall zeitgeist::ParameterList::AdvanceValue(class std::_Vector_const_iterator<class std::_Vector_val<class boost::any,class std::allocator<class boost::any> > > &,class salt::Vector3f &)const " (__imp_?AdvanceValue@ParameterList@zeitgeist@@QBE_NAAV?$_Vector_const_iterator@V?$_Vector_val@Vany@boost@@V?$allocator@Vany@boost@@@std@@@std@@@std@@AAVVector3f@salt@@@Z)
soccerbotbehavior.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall zeitgeist::ParameterList::AdvanceValue(class std::_Vector_const_iterator<class std::_Vector_val<class boost::any,class std::allocator<class boost::any> > > &,double &)const " (__imp_?AdvanceValue@ParameterList@zeitgeist@@QBE_NAAV?$_Vector_const_iterator@V?$_Vector_val@Vany@boost@@V?$allocator@Vany@boost@@@std@@@std@@@std@@AAN@Z)
C:\simspark\trunk\rcssserver3d\ebuild\rcssagent3d\Release\rcssagent3d.exe : fatal error LNK1120: 9 unresolved externals
Build FAILED.
Time Elapsed 00:00:19.97
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


and I dont know whats the problem can anyone help me ?
simspark project : rcssserver compiling on windows
Posted

1 solution

Looks like you're missing a .lib dependency.

[edit]
As an FYI...
If you're aware of the conversion data loss issues, you can get rid of the warning by simply casting the data. That'll let the compiler know that you're doing that on purpose instead of by accident.
double y = 3.14;
float x = y;        //<-- Results in compiler warning
float z = (float)y; //<-- No warning

[/edit]
 
Share this answer
 
v2
Comments
Nish Nishant 28-Apr-11 16:30pm    
My vote of 5!
Albert Holguin 28-Apr-11 16:32pm    
thank you nishant :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900