Ir para conteúdo

Featured Replies

Postado

Eae pessoal blz? Bem estou enfrentando alguns problemas na compilação de uma source do otx no visual studio 2010 express. Mais especificamente, o compilador acusa esse erro LNK2001. Já tentei várias coisas, trocar de compilador, sdk, versão do boost, etc. Nenhuma deu certo, sou meio leigo no assunto, então por favor me ajudem :p. Segue a imagem do erro em anexo (Não consegui postar no forum) + code com os erros

 

Spoiler

1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>beds.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::thread::~thread(void)" (??1thread@boost@@QEAA@XZ)
1>chat.obj : error LNK2001: unresolved external symbol "private: void __cdecl Spectators::sendChannelMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,enum MessageClasses,unsigned short)" (?sendChannelMessage@Spectators@@AEAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4MessageClasses@@G@Z)
1>chat.obj : error LNK2001: unresolved external symbol "private: void __cdecl Spectators::sendCreatureChannelSay(class Creature const *,enum MessageClasses,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned short,unsigned int)" (?sendCreatureChannelSay@Spectators@@AEAAXPEBVCreature@@W4MessageClasses@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@GI@Z)
1>chat.obj : error LNK2001: unresolved external symbol "private: void __cdecl Spectators::sendClosePrivate(unsigned short)" (?sendClosePrivate@Spectators@@AEAAXG@Z)
1>connection.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
1>databasesqlite.obj : error LNK2001: unresolved external symbol "private: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __cdecl boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::do_assign(char const *,char const *,unsigned int)" (?do_assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@AEAAAEAV12@PEBD0I@Z)
1>databasesqlite.obj : error LNK2001: unresolved external symbol "public: bool __cdecl boost::re_detail::perl_matcher<class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<struct boost::sub_match<class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> > > >,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::find(void)" (?find@?$perl_matcher@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@U?$sub_match@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@@2@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QEAA_NXZ)
1>databasesqlite.obj : error LNK2001: unresolved external symbol "private: void __cdecl boost::re_detail::perl_matcher<class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<struct boost::sub_match<class std::_String_const_iterator<char,struct std::char_traits<char>,class std::allocator<char> > > >,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::construct_init(class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > const &,enum boost::regex_constants::_match_flags)" (?construct_init@?$perl_matcher@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@U?$sub_match@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@@2@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@AEAAXAEBV?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@3@W4_match_flags@regex_constants@3@@Z)
1>databasesqlite.obj : error LNK2001: unresolved external symbol "char __cdecl boost::re_detail::w32_toupper(char,unsigned int)" (?w32_toupper@re_detail@boost@@YADDI@Z)
1>dispatcher.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::thread::thread(void)" (??0thread@boost@@QEAA@XZ)
1>dispatcher.obj : error LNK2001: unresolved external symbol "bool __cdecl boost::this_thread::interruptible_wait(void *,struct boost::detail::timeout)" (?interruptible_wait@this_thread@boost@@YA_NPEAXUtimeout@detail@2@@Z)
1>dispatcher.obj : error LNK2001: unresolved external symbol "private: void __cdecl boost::thread::start_thread(void)" (?start_thread@thread@boost@@AEAAXXZ)
1>game.obj : error LNK2001: unresolved external symbol "private: void __cdecl Spectators::sendCreatePrivateChannel(unsigned short,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?sendCreatePrivateChannel@Spectators@@AEAAXGAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>game.obj : error LNK2001: unresolved external symbol "public: void __cdecl Spectators::chat(unsigned short)" (?chat@Spectators@@QEAAXG@Z)
1>house.obj : error LNK2001: unresolved external symbol "public: bool __cdecl boost::re_detail::perl_matcher<char const *,class std::allocator<struct boost::sub_match<char const *> >,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::match(void)" (?match@?$perl_matcher@PEBDV?$allocator@U?$sub_match@PEBD@boost@@@std@@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QEAA_NXZ)
1>house.obj : error LNK2001: unresolved external symbol "private: void __cdecl boost::re_detail::perl_matcher<char const *,class std::allocator<struct boost::sub_match<char const *> >,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::construct_init(class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > const &,enum boost::regex_constants::_match_flags)" (?construct_init@?$perl_matcher@PEBDV?$allocator@U?$sub_match@PEBD@boost@@@std@@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@AEAAXAEBV?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@3@W4_match_flags@regex_constants@3@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "void __cdecl boost::filesystem3::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert@path_traits@filesystem3@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDH@5@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "void __cdecl boost::filesystem3::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert@path_traits@filesystem3@boost@@YAXPEB_W0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$codecvt@_WDH@5@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "private: static class std::codecvt<wchar_t,char,int> const * & __cdecl boost::filesystem3::path::wchar_t_codecvt_facet(void)" (?wchar_t_codecvt_facet@path@filesystem3@boost@@CAAEAPEBV?$codecvt@_WDH@std@@XZ)
1>luascript.obj : error LNK2001: unresolved external symbol "public: class boost::filesystem3::path __cdecl boost::filesystem3::path::filename(void)const " (?filename@path@filesystem3@boost@@QEBA?AV123@XZ)
1>luascript.obj : error LNK2001: unresolved external symbol "private: class boost::filesystem3::file_status __cdecl boost::filesystem3::directory_entry::m_get_status(class boost::system::error_code *)const " (?m_get_status@directory_entry@filesystem3@boost@@AEBA?AVfile_status@23@PEAVerror_code@system@3@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "class boost::system::error_code __cdecl boost::filesystem3::detail::dir_itr_close(void * &)" (?dir_itr_close@detail@filesystem3@boost@@YA?AVerror_code@system@3@AEAPEAX@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "void __cdecl boost::filesystem3::detail::directory_iterator_construct(class boost::filesystem3::directory_iterator &,class boost::filesystem3::path const &,class boost::system::error_code *)" (?directory_iterator_construct@detail@filesystem3@boost@@YAXAEAVdirectory_iterator@23@AEBVpath@23@PEAVerror_code@system@3@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "void __cdecl boost::filesystem3::detail::directory_iterator_increment(class boost::filesystem3::directory_iterator &,class boost::system::error_code *)" (?directory_iterator_increment@detail@filesystem3@boost@@YAXAEAVdirectory_iterator@23@PEAVerror_code@system@3@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "public: void __cdecl Spectators::kick(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >)" (?kick@Spectators@@QEAAXV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)
1>luascript.obj : error LNK2001: unresolved external symbol "public: void __cdecl Spectators::ban(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >)" (?ban@Spectators@@QEAAXV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)
1>otpch.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
1>otserv.obj : error LNK2001: unresolved external symbol "public: void __cdecl boost::thread::join(void)" (?join@thread@boost@@QEAAXXZ)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: void __cdecl Spectators::removeSpectator(class ProtocolGame *)" (?removeSpectator@Spectators@@QEAAXPEAVProtocolGame@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: bool __cdecl Spectators::check(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?check@Spectators@@QEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: void __cdecl Spectators::addSpectator(class ProtocolGame *)" (?addSpectator@Spectators@@QEAAXPEAVProtocolGame@@@Z)
1>protocolgame.obj : error LNK2001: unresolved external symbol "public: void __cdecl Spectators::handle(class ProtocolGame *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned short)" (?handle@Spectators@@QEAAXPEAVProtocolGame@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@G@Z)
1>scriptmanager.obj : error LNK2001: unresolved external symbol "class boost::filesystem3::file_status __cdecl boost::filesystem3::detail::status(class boost::filesystem3::path const &,class boost::system::error_code *)" (?status@detail@filesystem3@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z)
1>C:\Users\Fernandes\Downloads\OTX_2.1 [CAST]\msvc\x64\Release GUI\TheOTXServer.exe : fatal error LNK1120: 33 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 

 

paint.png

  • Respostas 10
  • Visualizações 788
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Baixe esse SDK: LINK Dentro da pasta extraída, execute o register sdk, pegue a pasta msvc e coloque na sources da sua OTX.   Tente compilar agora, usando o vcproj da pasta msvc.  

  • Só faz como eu disse no post, o boost que ta na pasta é o que já vai ser usado na compilação.

  • Tente renomear a função round pra algo tipo _round.

Posted Images

Postado
  • Autor
9 horas atrás, KotZletY disse:

@matheus36000 edite:

agora que olhei bem as fotos, vir que é a versão 2.1.

 

Você baixou as libs necessárias para a compilação ?

 

Amigo, eu baixei o boost 1.4.9 e o sdk disponibilizado pelo blacktibia. Precisa de mais alguma coisa?

Postado

@matheus36000 não conheço essa versão, mas tem certeza que as libs são as usadas para compilar essa versão ?

Olhe esse tutorial, justamente para otx 2x+

é sempre bom ver os tutoriais originais em si.

https://github.com/mattyx14/otxserver/wiki/Compilling-on-Windows

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Postado
  • Autor

@KotZletY Então cara, não existe mais tutoriais para compilar essa versão do otx (2.1), somente a de 2.40 pra frente. Mas de qualquer maneira, eu segui um tutorial do outro fórum. Estou contando mesmo com a experiencia da comunidade kk

Editado por KotZletY
Removi a citação e link de outro fórum! (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo