I recently upgraded my OS and my HDD, and with it decided to install Microsoft's
Visual C++ 2010, and I recently compiled the SFML 2.0 snapshot since it probably
won't be long till it becomes the official release, but I digress, whenever I try to
compile my code (which at this point I should probably mention that when I wrote
the code I'm trying to compile, I was using SFML 1.6), everytime I
try to compile my program it complains. Anyone know what is going wrong?
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(16): error C2065: 'Incoming' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(16): error C2228: left of '.Listen' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(21): error C2065: 'Selector' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(21): error C2228: left of '.Add' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(21): error C2065: 'Incoming' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(23): error C2065: 'Selector' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(23): error C2228: left of '.Wait' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(25): error C2039: 'SocketTCP' : is not a member of 'sf'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(25): error C2065: 'SocketTCP' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(25): error C2146: syntax error : missing ';' before identifier 'Socket'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(25): error C2065: 'Socket' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(25): error C2065: 'Selector' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(25): error C2228: left of '.GetSocketReady' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(26): error C2065: 'Socket' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(26): error C2065: 'Incoming' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(28): error C2065: 'Incoming' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(28): error C2228: left of '.Receive' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(41): error C2039: 'IPAddress' : is not a member of 'sf'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(41): error C2065: 'IPAddress' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(41): error C2146: syntax error : missing ';' before identifier 'serverip'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(41): error C2065: 'serverip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(41): error C2065: 'ownip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(44): error C2065: 'ownip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(44): error C3083: 'IPAddress': the symbol to the left of a '::' must be a type
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(44): error C2039: 'GetPublicAddress' : is not a member of 'sf'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(44): error C3861: 'GetPublicAddress': identifier not found
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(45): error C2039: 'SocketTCP' : is not a member of 'sf'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(45): error C2065: 'SocketTCP' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(45): error C2146: syntax error : missing ';' before identifier 'Outgoing'
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(45): error C2065: 'Outgoing' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(74): error C2065: 'ownip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(82): error C2065: 'serverip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(84): error C2065: 'serverip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(84): error C2228: left of '.IsValid' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(93): error C2065: 'serverip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(93): error C2228: left of '.IsValid' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(107): error C2065: 'Outgoing' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(107): error C2228: left of '.Connect' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(107): error C2065: 'serverip' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(128): error C2065: 'ownid' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(129): error C2065: 'Outgoing' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(129): error C2228: left of '.Send' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(178): error C2039: 'remove' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(179): error C2541: 'delete' : cannot delete objects that are not pointers
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(185): error C2065: 'Outgoing' : undeclared identifier
1>c:\users\******\documents\visual studio 2010\projects\messaging1\messaging1\main.cpp(185): error C2228: left of '.Send' must have class/struct/union
1> type is ''unknown-type''
1> The command exited with code 2.
1>Done executing task "CL" -- FAILED.
1>Done building target "ClCompile" in project "messaging1.vcxproj" -- FAILED.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.32
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========