Jeg nu lavet den op i klasser og jeg får nu denne fejl:
------ Build started: Project: EatIT, Configuration: Debug Win32 ------
Compiling...
EatIT.cpp
Exception.cpp
NetException.cpp
UnknownHostException.cpp
Net.cpp
IPAddress.cpp
Generating Code...
Compiling manifest to resources...
Linking...
Net.obj : error LNK2019: unresolved external symbol _WSAGetLastError@0 referenced in function "void __cdecl NetInit(void)" (?NetInit@@YAXXZ)
Net.obj : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "void __cdecl NetInit(void)" (?NetInit@@YAXXZ)
Net.obj : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "void __cdecl NetRelease(void)" (?NetRelease@@YAXXZ)
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)
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)
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)
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
C:\\Documents and Settings\\Administrator\\Dokumenter\\Visual Studio 2005\\Projects\\RemoteBackOp\\Debug\\EatIT.exe : fatal error LNK1120: 9 unresolved externals
Build log was saved at "file://c:\\Documents and Settings\\Administrator\\Dokumenter\\Visual Studio 2005\\Projects\\RemoteBackOp\\RemoteBackOp\\Debug\\BuildLog.htm"
EatIT - 10 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Jeg er da kun til besvær

Ej bare glem det, så må jeg vende tilbage til det senere, og så starte med at lave et GUI.
Indlæg senest redigeret d. 30.10.2006 20:14 af Bruger #6559