Compiling spring (mingw and visual studio 7/8)
Moderator: Moderators
Code: Select all
rts\Game\GameServer.cpp: In constructor `CGameServer::CGameServer(int, const std::string&, const std::string&, const std::string&, const std::string&)':
rts\Game\GameServer.cpp:93: error: call of overloaded `bind(void (CGameServer::*)(), CGameServer* const)' is ambiguous
mingwlibs/include/boost/bind.hpp:1235: note: candidates are: boost::_bi::bind_t<R, F, typename boost::_bi::list_av_1<A1>::type> boost::bind(F, A1) [with R = void, F = void (CGameServer::*)(), A1 = CGameServer*]
mingwlibs/include/boost/bind/bind_mf_cc.hpp:21: note: boost::_bi::bind_t<R, boost::_mfi::mf0<R, T>, typename boost::_bi::list_av_1<A1>::type> boost::bind(R (T::*)(), A1) [with R = void, T = CGameServer, A1 = CGameServer*]
uninstalled DevC++ as AF recommended, updated minGW to gcc 3.4.5, but it seems that problem is somewhere else. I still get "can't locate -lstreflop' message, although in the beginning it says 'Succes building streflop'
-Lrts\lib\streflop -Lmingwlibs\lib -LD:\MinGW\lib -lopengl32 -lglew32 -lglu32 -ldevil -lILU -lSDL -lSDLmain -lboost_regex-mt -lboost_thread-mt
-ldsound -lfreetype -lgdi32 -limagehlp -lmingw32 -lole32 -lpython25
-lwinmm -lwsock32 -lz -lstreflop
D:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lstreflop
collect2: ld returned 1 exit status
scons: *** [game\spring.exe] Error 1
scons: building terminated because of errors.
right,
got mine at
http://www.osrts.info/~buildbot/spring/ ... streflop.a
and managed to compile at last
thanks
got mine at
http://www.osrts.info/~buildbot/spring/ ... streflop.a
and managed to compile at last
thanks
Code: Select all
1>Compiling...
1>GameServer.cpp
1>DemoReader.cpp
1>DemoRecorder.cpp
1>..\..\System\DemoRecorder.cpp(155) : error C3861: 'assert': identifier not found
1>..\..\System\DemoRecorder.cpp(163) : error C3861: 'assert': identifier not found
1>NetProtocol.cpp
1>ArchiveScanner.cpp
1>Generating Code...
I'm getting this compile error:
I can fix it by changing
to
Perhaps my boot libs are outdated?
Code: Select all
rts\Game\GameServer.cpp: In constructor `CGameServer::CGameServer(int, const std::string&, const std::string&, const std::string&, const std::string&)':
rts\Game\GameServer.cpp:94: error: call of overloaded `bind(void (CGameServer::*)(), CGameServer* const)' is ambiguous
mingwlibs/include/boost/bind.hpp:1235: note: candidates are: boost::_bi::bind_t<R, F, typename boost::_bi::list_av_1<A1>::type> boost::bind(F, A1) [with R = void, F = void (CGameServer::*)(), A1 = CGameServer*]
mingwlibs/include/boost/bind/bind_mf_cc.hpp:21: note: boost::_bi::bind_t<R, boost::_mfi::mf0<R, T>, typename boost::_bi::list_av_1<A1>::type> boost::bind(R (T::*)(), A1) [with R = void, T = CGameServer, A1 = CGameServer*]
scons: building terminated because of errors.
Code: Select all
thread = new boost::thread(boost::bind<void>(&CGameServer::UpdateLoop, this));
Code: Select all
thread = new boost::thread(boost::bind<void, CGameServer, CGameServer*>(&CGameServer::UpdateLoop, this));