yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
707 stars 95 forks source link

LNK 2001 / LNK 2009 undefinedexternal symbol multiple errors. #123

Open alikindsys opened 5 years ago

alikindsys commented 5 years ago

I've imported all the libs statd on the github.io site. After compiling this is what the compiler states:


1>UBGEcpp.obj : error LNK2019: símbolo externo indefinido "public: __thiscall SleepyDiscord::WebsocketppDiscordClient::WebsocketppDiscordClient(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,char)" (??0WebsocketppDiscordClient@SleepyDiscord@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@Z) referenciado na função "public: __thiscall myClientClass::myClientClass(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,char)" (??0myClientClass@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@D@Z)
1>UBGEcpp.obj : error LNK2019: símbolo externo indefinido "public: __thiscall SleepyDiscord::WebsocketppDiscordClient::~WebsocketppDiscordClient(void)" (??1WebsocketppDiscordClient@SleepyDiscord@@QAE@XZ) referenciado na função "public: __thiscall myClientClass::~myClientClass(void)" (??1myClientClass@@QAE@XZ)
1>UBGEcpp.obj : error LNK2019: símbolo externo indefinido "public: virtual void __thiscall SleepyDiscord::WebsocketppDiscordClient::run(void)" (?run@WebsocketppDiscordClient@SleepyDiscord@@UAEXXZ) referenciado na função _main
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "public: virtual struct SleepyDiscord::Timer __thiscall SleepyDiscord::WebsocketppDiscordClient::schedule(class std::function<void __cdecl(void)>,__int64)" (?schedule@WebsocketppDiscordClient@SleepyDiscord@@UAE?AUTimer@2@V?$function@$$A6AXXZ@std@@_J@Z)
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "protected: virtual void __thiscall SleepyDiscord::WebsocketppDiscordClient::onError(enum SleepyDiscord::ErrorCode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?onError@WebsocketppDiscordClient@SleepyDiscord@@MAEXW4ErrorCode@2@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "protected: virtual void __thiscall SleepyDiscord::WebsocketppDiscordClient::sleep(unsigned int)" (?sleep@WebsocketppDiscordClient@SleepyDiscord@@MAEXI@Z)
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "private: virtual bool __thiscall SleepyDiscord::WebsocketppDiscordClient::connect(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?connect@WebsocketppDiscordClient@SleepyDiscord@@EAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "private: virtual void __thiscall SleepyDiscord::WebsocketppDiscordClient::disconnect(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?disconnect@WebsocketppDiscordClient@SleepyDiscord@@EAEXIV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "private: virtual void __thiscall SleepyDiscord::WebsocketppDiscordClient::send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?send@WebsocketppDiscordClient@SleepyDiscord@@EAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>UBGEcpp.obj : error LNK2001: símbolos externos indefinidos "private: virtual void __thiscall SleepyDiscord::WebsocketppDiscordClient::runAsync(void)" (?runAsync@WebsocketppDiscordClient@SleepyDiscord@@EAEXXZ)
1>sleepy_discord.lib(client.obj) : error LNK2001: símbolos externos indefinidos "public: static class SleepyDiscord::GenericSession * (__cdecl* SleepyDiscord::CustomSession::init)(void)" (?init@CustomSession@SleepyDiscord@@2Q6APAVGenericSession@2@XZA)
1>C:\Users\cliente\source\repos\UBGEcpp\Debug\UBGEcpp.exe : fatal error LNK1120: 11 externo não resolvidos
1>Projeto de compilação pronto "UBGEcpp.vcxproj" -- FALHA.
========== Compilar: 0 com êxito, 1 com falha, 0 atualizados, 0 ignorados ==========
● Finished at 11:25:13 (total time 1,48s)```
alikindsys commented 5 years ago

Inclusion Directories : C:\Users\cliente\source\repos\SleppyBoi\include;C:\Users\cliente\source\repos\SleppyBoi\deps;C:\Users\cliente\source\repos\SleppyBoi\deps\include;C:\Users\cliente\source\repos\SleppyBoi\include\sleepy_discord\IncludeNonexistent;$(IncludePath) Library Directories: C:\Users\cliente\source\repos\SleppyBoi\deps\lib;$(LibraryPath) Aditional Deps : sleepy_discord.lib;libcurl_a.lib;libcryptoMT.lib;libsslMT.lib;crypt32.lib;Wldap32.lib;Advapi32.lib;Normaliz.lib;User32.lib;%(AdditionalDependencies)

yourWaifu commented 5 years ago

Do you have websocketpp inside deps\include?

alikindsys commented 5 years ago

Yeah