Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On windows i get some random errors? #8

Closed
DualByte opened this issue Jul 7, 2019 · 1 comment
Closed

On windows i get some random errors? #8

DualByte opened this issue Jul 7, 2019 · 1 comment

Comments

@DualByte
Copy link

DualByte commented Jul 7, 2019

I just imported this into my project and i get these errors
Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol __imp_connect referenced in function "public: struct http::Response __cdecl http::Request::send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,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> > > > const &)" (?send@Request@http@@QEAA?AUResponse@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AEBV?$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@@5@@Z) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_closesocket referenced in function "private: void __cdecl http::Socket::close(void)" (?close@Socket@http@@AEAAXXZ) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_recv referenced in function "public: struct http::Response __cdecl http::Request::send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,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> > > > const &)" (?send@Request@http@@QEAA?AUResponse@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AEBV?$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@@5@@Z) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_send referenced in function "public: struct http::Response __cdecl http::Request::send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,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> > > > const &)" (?send@Request@http@@QEAA?AUResponse@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AEBV?$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@@5@@Z) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_socket referenced in function "public: __cdecl http::Socket::Socket(enum http::InternetProtocol)" (??0Socket@http@@QEAA@W4InternetProtocol@1@@Z) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_WSAStartup referenced in function "public: __cdecl http::WinSock::WinSock(void)" (??0WinSock@http@@QEAA@XZ) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_WSACleanup referenced in function "public: __cdecl http::WinSock::~WinSock(void)" (??1WinSock@http@@QEAA@XZ) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_WSAGetLastError referenced in function "int __cdecl http::getLastError(void)" (?getLastError@http@@YAHXZ) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_getaddrinfo referenced in function "public: struct http::Response __cdecl http::Request::send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,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> > > > const &)" (?send@Request@http@@QEAA?AUResponse@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AEBV?$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@@5@@Z) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK2019 unresolved external symbol __imp_freeaddrinfo referenced in function "public: struct http::Response __cdecl http::Request::send(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,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> > > > const &)" (?send@Request@http@@QEAA?AUResponse@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AEBV?$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@@5@@Z) C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS.cpp.obj 1 Error LNK1120 10 unresolved externals C:\Users\d0b\source\repos\NGDDoS\CMakeLists.txt C:\Users\d0b\source\repos\NGDDoS\NGDDoS\NGDDoS.exe 1

@elnormous
Copy link
Owner

You have to link ws2_32.lib to your executable. Please see the Visual Studio documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants