• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem compiling tfs

Delirium

OTLand veteran
Staff member
Global Moderator
Joined
May 28, 2007
Messages
3,365
Solutions
1
Reaction score
290
Location
Athens, Greece
Code:
admin.o(.text+0x4519):admin.cpp: undefined reference to `boost::system::get_system_category()'
admin.o(.text+0x4532):admin.cpp: undefined reference to `boost::system::get_posix_category()'
admin.o(.text+0x454b):admin.cpp: undefined reference to `boost::system::get_posix_category()'
admin.o(.text+0x4564):admin.cpp: undefined reference to `boost::system::get_system_category()'
connection.o(.text+0x1762):connection.cpp: undefined reference to `boost::system::get_system_category()'
connection.o(.text+0x177b):connection.cpp: undefined reference to `boost::system::get_posix_category()'
connection.o(.text+0x1794):connection.cpp: undefined reference to `boost::system::get_posix_category()'
connection.o(.text+0x17ad):connection.cpp: undefined reference to `boost::system::get_system_category()'
connection.o(.text$_ZN5boost4asio6detail10socket_ops4sendEjPK7_WSABUFjiRNS_6system10error_codeE[boost::asio::detail::socket_ops::send(unsigned int, _WSABUF const*, unsigned int, int, boost::system::error_code&)]+0x57):connection.cpp: undefined reference to `WSASend@28'

connection.o(.text$_ZN5boost4asio6detail23win_iocp_socket_serviceINS0_2ip3tcpEE13async_receiveINS1_17consuming_buffersINS0_14mutable_bufferENS0_17mutable_buffers_1EEENS1_12read_handlerINS0_19basic_stream_socketIS4_NS0_21stream_socket_serviceIS4_EEEES9_NS1_14transfer_all_tENS_3_bi6bind_tIvNS_4_mfi3mf1Iv10ConnectionRKNS_6system10error_codeEEENSH_5list2INSH_5valueIPSL_EEPFNS_3argILi1EEEvEEEEEEEEEvRNS5_19implementation_typeERKT_iT0_[void boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::async_receive<boost::asio::detail::consuming_buffers<boost::asio::mutable_buffer, boost::asio::mutable_buffers_1>, boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf1<void, Connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<Connection*>, boost::arg<1> (*)()> > > >(boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::implementation_type&, boost::asio::detail::consuming_buffers<boost::asio::mutable_buffer, boost::asio::mutable_buffers_1> const&, int, boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf1<void, Connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<Connection*>, boost::arg<1> (*)()> > >)]+0x52c):connection.cpp: undefined reference to `WSARecv@28'

connection.o(.text$_ZN5boost4asio6detail23win_iocp_socket_serviceINS0_2ip3tcpEE10async_sendINS1_17consuming_buffersINS0_12const_bufferENS0_17mutable_buffers_1EEENS1_13write_handlerINS0_19basic_stream_socketIS4_NS0_21stream_socket_serviceIS4_EEEES9_NS1_14transfer_all_tENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10ConnectionP13OutputMessageRKNS_6system10error_codeEEENSH_5list3INSH_5valueIPSL_EENSU_ISN_EEPFNS_3argILi1EEEvEEEEEEEEEvRNS5_19implementation_typeERKT_iT0_[void boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::async_send<boost::asio::detail::consuming_buffers<boost::asio::const_buffer, boost::asio::mutable_buffers_1>, boost::asio::detail::write_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf2<void, Connection, OutputMessage*, boost::system::error_code const&>, boost::_bi::list3<boost::_bi::value<Connection*>, boost::_bi::value<OutputMessage*>, boost::arg<1> (*)()> > > >(boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::implementation_type&, boost::asio::detail::consuming_buffers<boost::asio::const_buffer, boost::asio::mutable_buffers_1> const&, int, boost::asio::detail::write_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf2<void, Connection, OutputMessage*, boost::system::error_code const&>, boost::_bi::list3<boost::_bi::value<Connection*>, boost::_bi::value<OutputMessage*>, boost::arg<1> (*)()> > >)]+0x520):connection.cpp: undefined reference to `WSASend@28'
game.o(.text+0x173ef):game.cpp: undefined reference to `boost::system::get_system_category()'
game.o(.text+0x17408):game.cpp: undefined reference to `boost::system::get_posix_category()'
game.o(.text+0x17421):game.cpp: undefined reference to `boost::system::get_posix_category()'
game.o(.text+0x1743a):game.cpp: undefined reference to `boost::system::get_system_category()'
otserv.o(.text+0x39de):otserv.cpp: undefined reference to `boost::system::get_system_category()'
otserv.o(.text+0x39fe):otserv.cpp: undefined reference to `boost::system::get_posix_category()'
otserv.o(.text+0x3a1e):otserv.cpp: undefined reference to `boost::system::get_posix_category()'
otserv.o(.text+0x3a3e):otserv.cpp: undefined reference to `boost::system::get_system_category()'
outputmessage.o(.text+0x11f1):outputmessage.cpp: undefined reference to `boost::system::get_system_category()'
outputmessage.o(.text+0x120a):outputmessage.cpp: undefined reference to `boost::system::get_posix_category()'
outputmessage.o(.text+0x1223):outputmessage.cpp: undefined reference to `boost::system::get_posix_category()'
outputmessage.o(.text+0x123c):outputmessage.cpp: undefined reference to `boost::system::get_system_category()'
protocol.o(.text+0x6d1):protocol.cpp: undefined reference to `boost::system::get_system_category()'
protocol.o(.text+0x6ea):protocol.cpp: undefined reference to `boost::system::get_posix_category()'
protocol.o(.text+0x703):protocol.cpp: undefined reference to `boost::system::get_posix_category()'
protocol.o(.text+0x71c):protocol.cpp: undefined reference to `boost::system::get_system_category()'
protocol80.o(.text+0xcddd):protocol80.cpp: undefined reference to `boost::system::get_system_category()'
protocol80.o(.text+0xcdf6):protocol80.cpp: undefined reference to `boost::system::get_posix_category()'
protocol80.o(.text+0xce0f):protocol80.cpp: undefined reference to `boost::system::get_posix_category()'
protocol80.o(.text+0xce28):protocol80.cpp: undefined reference to `boost::system::get_system_category()'
protocollogin.o(.text+0xc19):protocollogin.cpp: undefined reference to `boost::system::get_system_category()'
protocollogin.o(.text+0xc32):protocollogin.cpp: undefined reference to `boost::system::get_posix_category()'
protocollogin.o(.text+0xc4b):protocollogin.cpp: undefined reference to `boost::system::get_posix_category()'
protocollogin.o(.text+0xc64):protocollogin.cpp: undefined reference to `boost::system::get_system_category()'
server.o(.text+0x8d2):server.cpp: undefined reference to `boost::system::get_system_category()'
server.o(.text+0x8eb):server.cpp: undefined reference to `boost::system::get_posix_category()'
server.o(.text+0x904):server.cpp: undefined reference to `boost::system::get_posix_category()'
server.o(.text+0x91d):server.cpp: undefined reference to `boost::system::get_system_category()'
server.o(.text$_ZN5boost4asio6detail10socket_ops6socketEiiiRNS_6system10error_codeE[boost::asio::detail::socket_ops::socket(int, int, int, boost::system::error_code&)]+0x3e):server.cpp: undefined reference to `WSASocketA@24'
status.o(.text+0x13ed):status.cpp: undefined reference to `boost::system::get_system_category()'
status.o(.text+0x1406):status.cpp: undefined reference to `boost::system::get_posix_category()'
status.o(.text+0x141f):status.cpp: undefined reference to `boost::system::get_posix_category()'
status.o(.text+0x1438):status.cpp: undefined reference to `boost::system::get_system_category()'
tools.o(.text+0x3bb2):tools.cpp: undefined reference to `boost::system::get_system_category()'
tools.o(.text+0x3bcb):tools.cpp: undefined reference to `boost::system::get_posix_category()'

tools.o(.text+0x3be4):tools.cpp: undefined reference to `boost::system::get_posix_category()'
tools.o(.text+0x3bfd):tools.cpp: undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status

make.exe: *** [TheForgottenServer.exe] Error 1

Execution Terminated

any idea?
 
If you are using TheForgottenDev-Cpp then add -lboost_system to linkers.
 
If you are using TheForgottenDev-Cpp then add -lboost_system to linkers.

Thanks,now i got this:

Code:
windres.exe -i TheForgottenServer_private.rc --input-format=rc -o TheForgottenServer_private.res -O coff 

g++.exe account.o actions.o admin.o allocator.o ban.o baseevents.o chat.o combat.o commands.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemysql.o databasesqlite.o depot.o exception.o fileloader.o game.o gui.o house.o housetile.o inputbox.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o items.o logger.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o playerbox.o position.o protocol.o protocol80.o protocollogin.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o vocation.o waitlist.o weapons.o TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"lib" -mwindows C:/Dev-Cpp/lib/libxml2.lib C:/Dev-Cpp/lib/lua5.1.dll -lmysql -lwsock32 -lgmp -lsqlite3 -lregex -lluasql-mysql -lluasql-sqlite3 -lboost_system -s  

connection.o(.text$_ZN5boost4asio6detail10socket_ops4sendEjPK7_WSABUFjiRNS_6system10error_codeE[boost::asio::detail::socket_ops::send(unsigned int, _WSABUF const*, unsigned int, int, boost::system::error_code&)]+0x57):connection.cpp: undefined reference to `WSASend@28'
connection.o(.text$_ZN5boost4asio6detail23win_iocp_socket_serviceINS0_2ip3tcpEE13async_receiveINS1_17consuming_buffersINS0_14mutable_bufferENS0_17mutable_buffers_1EEENS1_12read_handlerINS0_19basic_stream_socketIS4_NS0_21stream_socket_serviceIS4_EEEES9_NS1_14transfer_all_tENS_3_bi6bind_tIvNS_4_mfi3mf1Iv10ConnectionRKNS_6system10error_codeEEENSH_5list2INSH_5valueIPSL_EEPFNS_3argILi1EEEvEEEEEEEEEvRNS5_19implementation_typeERKT_iT0_[void boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::async_receive<boost::asio::detail::consuming_buffers<boost::asio::mutable_buffer, boost::asio::mutable_buffers_1>, boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf1<void, Connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<Connection*>, boost::arg<1> (*)()> > > >(boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::implementation_type&, boost::asio::detail::consuming_buffers<boost::asio::mutable_buffer, boost::asio::mutable_buffers_1> const&, int, boost::asio::detail::read_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf1<void, Connection, boost::system::error_code const&>, boost::_bi::list2<boost::_bi::value<Connection*>, boost::arg<1> (*)()> > >)]+0x52c):connection.cpp: undefined reference to `WSARecv@28'
connection.o(.text$_ZN5boost4asio6detail23win_iocp_socket_serviceINS0_2ip3tcpEE10async_sendINS1_17consuming_buffersINS0_12const_bufferENS0_17mutable_buffers_1EEENS1_13write_handlerINS0_19basic_stream_socketIS4_NS0_21stream_socket_serviceIS4_EEEES9_NS1_14transfer_all_tENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10ConnectionP13OutputMessageRKNS_6system10error_codeEEENSH_5list3INSH_5valueIPSL_EENSU_ISN_EEPFNS_3argILi1EEEvEEEEEEEEEvRNS5_19implementation_typeERKT_iT0_[void boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::async_send<boost::asio::detail::consuming_buffers<boost::asio::const_buffer, boost::asio::mutable_buffers_1>, boost::asio::detail::write_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf2<void, Connection, OutputMessage*, boost::system::error_code const&>, boost::_bi::list3<boost::_bi::value<Connection*>, boost::_bi::value<OutputMessage*>, boost::arg<1> (*)()> > > >(boost::asio::detail::win_iocp_socket_service<boost::asio::ip::tcp>::implementation_type&, boost::asio::detail::consuming_buffers<boost::asio::const_buffer, boost::asio::mutable_buffers_1> const&, int, boost::asio::detail::write_handler<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf2<void, Connection, OutputMessage*, boost::system::error_code const&>, boost::_bi::list3<boost::_bi::value<Connection*>, boost::_bi::value<OutputMessage*>, boost::arg<1> (*)()> > >)]+0x520):connection.cpp: undefined reference to `WSASend@28'
server.o(.text$_ZN5boost4asio6detail10socket_ops6socketEiiiRNS_6system10error_codeE[boost::asio::detail::socket_ops::socket(int, int, int, boost::system::error_code&)]+0x3e):server.cpp: undefined reference to `WSASocketA@24'
collect2: ld returned 1 exit status

make.exe: *** [TheForgottenServer.exe] Error 1


Linkers:
Code:
C:/Dev-Cpp/lib/libxml2.lib
C:/Dev-Cpp/lib/lua5.1.dll
-lmysql
-lwsock32
-lgmp
-lsqlite3
-lregex
-lluasql-mysql
-lluasql-sqlite3
-lboost_system
-s


C++ Compiler Parameters
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__RULEVIOLATIONREPORTS__
 
Back
Top