Hej
Jeg har kigget på de artikler der er om netværksprogrammering og vil gerne lave en windows app der henter en side.. etc...
men når jeg compiler det hele får jeg en række LNK: unresolved external symbol errors:
IPAddress.obj : error LNK2019: unresolved external symbol __imp__inet_ntoa@4 referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall IPAddress::getAddressString(unsigned int)" (?getAddressString@IPAddress@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)
IPAddress.obj : error LNK2019: unresolved external symbol __imp__gethostbyaddr@12 referenced in function "private: void __thiscall IPAddress::fromInAddr(struct in_addr)" (?fromInAddr@IPAddress@@AAEXUin_addr@@@Z)
IPAddress.obj : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function "public: __thiscall IPAddress::IPAddress(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (??0IPAddress@@QAE@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
TCPSocket.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0
IPAddress.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function "public: __thiscall IPAddress::IPAddress(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (??0IPAddress@@QAE@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
IPAddress.obj : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function "public: __thiscall IPAddress::IPAddress(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (??0IPAddress@@QAE@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Net.obj : error LNK2019: unresolved external symbol _WSAGetLastError@0 referenced in function "void __cdecl NetRelease(void)" (?NetRelease@@YAXXZ)
Net.obj : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "void __cdecl NetRelease(void)" (?NetRelease@@YAXXZ)
Net.obj : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "void __cdecl NetInit(void)" (?NetInit@@YAXXZ)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "public: void __thiscall TCPSocket::close(void)" (?close@TCPSocket@@QAEXXZ)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "public: int __thiscall TCPSocket::write(void const *,int)" (?write@TCPSocket@@QAEHPBXH@Z)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__select@20 referenced in function "private: void __thiscall TCPSocket::waitForData(void)" (?waitForData@TCPSocket@@AAEXXZ)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "public: void __thiscall TCPSocket::connect(void)" (?connect@TCPSocket@@QAEXXZ)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: void __thiscall TCPSocket::connect(void)" (?connect@TCPSocket@@QAEXXZ)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "public: void __thiscall TCPSocket::connect(void)" (?connect@TCPSocket@@QAEXXZ)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "public: int __thiscall TCPSocket::read(void *,int)" (?read@TCPSocket@@QAEHPAXH@Z)
TCPSocket.obj : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function "private: __thiscall TCPSocket::TCPSocket(int,struct sockaddr_in,unsigned int)" (??0TCPSocket@@AAE@HUsockaddr_in@@I@Z)
LIBCMT.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
Hvordan kommer jeg videre?
Er det noget med at jeg skal tilføje til object/library module til mit project? Hvordan gør man det i Visual Studio 2005 Beta? Jeg har ledt efter det i menuerne men kan ikke rigtigt finde noget.