Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: library conflict  (Read 2210 times)

0 Members and 1 Guest are viewing this topic.

gmysu

  • Newbie
  • *
  • Posts: 9
    • View Profile
library conflict
« on: February 29, 2012, 02:47:03 pm »
it seems that the following error results from mixing sfml network package and mysql++ library. how do i solve it?

regards

Code: [Select]
1>------ Build started: Project: windblight login, Configuration: Debug Win32 ------
1>Compiling...
1>windblight login.cpp
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(91) : warning C4005: 'AF_IPX' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(460) : see previous definition of 'AF_IPX'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(127) : warning C4005: 'AF_MAX' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(479) : see previous definition of 'AF_MAX'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(163) : warning C4005: 'SO_DONTLINGER' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(402) : see previous definition of 'SO_DONTLINGER'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(206) : error C2011: 'sockaddr' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(485) : see declaration of 'sockaddr'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(384) : error C2143: syntax error : missing '}' before 'constant'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(384) : error C2143: syntax error : missing ';' before 'constant'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(384) : error C2059: syntax error : 'constant'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(437) : error C2143: syntax error : missing ';' before '}'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(437) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(437) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(518) : warning C4005: 'IN_CLASSA' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(287) : see previous definition of 'IN_CLASSA'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(524) : warning C4005: 'IN_CLASSB' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(293) : see previous definition of 'IN_CLASSB'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(530) : warning C4005: 'IN_CLASSC' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(299) : see previous definition of 'IN_CLASSC'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(541) : warning C4005: 'INADDR_ANY' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(304) : see previous definition of 'INADDR_ANY'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(543) : warning C4005: 'INADDR_BROADCAST' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(306) : see previous definition of 'INADDR_BROADCAST'
1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(577) : error C2011: 'sockaddr_in' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(312) : see declaration of 'sockaddr_in'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(132) : error C2011: 'fd_set' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(68) : see declaration of 'fd_set'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(167) : warning C4005: 'FD_SET' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(102) : see previous definition of 'FD_SET'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(176) : error C2011: 'timeval' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(111) : see declaration of 'timeval'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(232) : error C2011: 'hostent' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(167) : see declaration of 'hostent'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(245) : error C2011: 'netent' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(180) : see declaration of 'netent'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(252) : error C2011: 'servent' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(187) : see declaration of 'servent'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(264) : error C2011: 'protoent' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(199) : see declaration of 'protoent'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(360) : error C2011: 'WSAData' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(322) : see declaration of 'WSAData'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(458) : error C2011: 'sockproto' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(494) : see declaration of 'sockproto'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(500) : error C2011: 'linger' : 'struct' type redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(531) : see declaration of 'linger'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(513) : warning C4005: 'SOMAXCONN' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(544) : see previous definition of 'SOMAXCONN'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(542) : warning C4005: 'FD_READ' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(562) : see previous definition of 'FD_READ'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(545) : warning C4005: 'FD_WRITE' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(563) : see previous definition of 'FD_WRITE'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(548) : warning C4005: 'FD_OOB' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(564) : see previous definition of 'FD_OOB'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(551) : warning C4005: 'FD_ACCEPT' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(565) : see previous definition of 'FD_ACCEPT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(554) : warning C4005: 'FD_CONNECT' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(566) : see previous definition of 'FD_CONNECT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(557) : warning C4005: 'FD_CLOSE' : macro redefinition
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(567) : see previous definition of 'FD_CLOSE'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1527) : error C2375: 'accept' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(735) : see declaration of 'accept'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1548) : error C2375: 'bind' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(740) : see declaration of 'bind'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1567) : error C2375: 'closesocket' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(745) : see declaration of 'closesocket'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1586) : error C2375: 'connect' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(747) : see declaration of 'connect'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1607) : error C2375: 'ioctlsocket' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(752) : see declaration of 'ioctlsocket'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1628) : error C2375: 'getpeername' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(757) : see declaration of 'getpeername'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1649) : error C2375: 'getsockname' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(762) : see declaration of 'getsockname'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1672) : error C2375: 'getsockopt' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(767) : see declaration of 'getsockopt'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1693) : error C2375: 'htonl' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(774) : see declaration of 'htonl'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1710) : error C2375: 'htons' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(776) : see declaration of 'htons'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1728) : error C2375: 'inet_addr' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(778) : see declaration of 'inet_addr'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1745) : error C2375: 'inet_ntoa' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(780) : see declaration of 'inet_ntoa'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1763) : error C2375: 'listen' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(782) : see declaration of 'listen'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1781) : error C2375: 'ntohl' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(786) : see declaration of 'ntohl'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1798) : error C2375: 'ntohs' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(788) : see declaration of 'ntohs'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1818) : error C2375: 'recv' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(790) : see declaration of 'recv'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1843) : error C2375: 'recvfrom' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(796) : see declaration of 'recvfrom'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1869) : error C2375: 'select' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(804) : see declaration of 'select'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1893) : error C2375: 'send' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(811) : see declaration of 'send'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1918) : error C2375: 'sendto' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(817) : see declaration of 'sendto'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1944) : error C2375: 'setsockopt' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(825) : see declaration of 'setsockopt'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1966) : error C2375: 'shutdown' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(832) : see declaration of 'shutdown'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(1986) : error C2375: 'socket' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(836) : see declaration of 'socket'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2009) : error C2375: 'gethostbyaddr' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(843) : see declaration of 'gethostbyaddr'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2029) : error C2375: 'gethostbyname' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(848) : see declaration of 'gethostbyname'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2047) : error C2375: 'gethostname' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(850) : see declaration of 'gethostname'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2067) : error C2375: 'getservbyport' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(854) : see declaration of 'getservbyport'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2087) : error C2375: 'getservbyname' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(858) : see declaration of 'getservbyname'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2106) : error C2375: 'getprotobynumber' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(862) : see declaration of 'getprotobynumber'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2124) : error C2375: 'getprotobyname' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(864) : see declaration of 'getprotobyname'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2145) : error C2375: 'WSAStartup' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(868) : see declaration of 'WSAStartup'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2163) : error C2375: 'WSACleanup' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(872) : see declaration of 'WSACleanup'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2180) : error C2375: 'WSASetLastError' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(874) : see declaration of 'WSASetLastError'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2197) : error C2375: 'WSAGetLastError' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(876) : see declaration of 'WSAGetLastError'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2214) : error C2375: 'WSAIsBlocking' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(878) : see declaration of 'WSAIsBlocking'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2231) : error C2375: 'WSAUnhookBlockingHook' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(880) : see declaration of 'WSAUnhookBlockingHook'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2248) : error C2375: 'WSASetBlockingHook' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(882) : see declaration of 'WSASetBlockingHook'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2265) : error C2375: 'WSACancelBlockingCall' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(884) : see declaration of 'WSACancelBlockingCall'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2287) : error C2375: 'WSAAsyncGetServByName' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(886) : see declaration of 'WSAAsyncGetServByName'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2314) : error C2375: 'WSAAsyncGetServByPort' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(894) : see declaration of 'WSAAsyncGetServByPort'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2340) : error C2375: 'WSAAsyncGetProtoByName' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(902) : see declaration of 'WSAAsyncGetProtoByName'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2365) : error C2375: 'WSAAsyncGetProtoByNumber' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(909) : see declaration of 'WSAAsyncGetProtoByNumber'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2390) : error C2375: 'WSAAsyncGetHostByName' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(916) : see declaration of 'WSAAsyncGetHostByName'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2417) : error C2375: 'WSAAsyncGetHostByAddr' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(923) : see declaration of 'WSAAsyncGetHostByAddr'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2440) : error C2375: 'WSACancelAsyncRequest' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(932) : see declaration of 'WSACancelAsyncRequest'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2461) : error C2375: 'WSAAsyncSelect' : redefinition; different linkage
1>        c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(934) : see declaration of 'WSAAsyncSelect'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(3910) : error C2059: syntax error : '}'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(3910) : error C2143: syntax error : missing ';' before '}'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(3910) : error C2059: syntax error : '}'
1>d:\sfml-1.6\include\sfml\network\win32\sockethelper.hpp(35) : error C2143: syntax error : missing ';' before '{'
1>d:\sfml-1.6\include\sfml\network\win32\sockethelper.hpp(35) : error C2447: '{' : missing function header (old-style formal list?)
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(203) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(203) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(203) : error C2061: syntax error : identifier 'SocketType'
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(203) : error C2535: 'sf::SocketTCP::SocketTCP(void)' : member function already defined or declared
1>        d:\sfml-1.6\include\sfml\network\sockettcp.hpp(53) : see declaration of 'sf::SocketTCP::SocketTCP'
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(211) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(211) : error C2061: syntax error : identifier 'SocketType'
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(216) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(216) : error C2146: syntax error : missing ';' before identifier 'mySocket'
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(216) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sfml-1.6\include\sfml\network\sockettcp.hpp(216) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(203) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(203) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(203) : error C2061: syntax error : identifier 'SocketType'
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(203) : error C2535: 'sf::SocketUDP::SocketUDP(void)' : member function already defined or declared
1>        d:\sfml-1.6\include\sfml\network\socketudp.hpp(53) : see declaration of 'sf::SocketUDP::SocketUDP'
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(211) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(211) : error C2061: syntax error : identifier 'SocketType'
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(216) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(216) : error C2146: syntax error : missing ';' before identifier 'mySocket'
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(216) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sfml-1.6\include\sfml\network\socketudp.hpp(216) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(59) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(59) : error C2061: syntax error : identifier 'SocketType'
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(67) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(67) : error C2061: syntax error : identifier 'SocketType'
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(97) : error C2653: 'SocketHelper' : is not a class or namespace name
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(97) : error C2146: syntax error : missing ';' before identifier 'GetSocketReady'
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(97) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(97) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(97) : warning C4183: 'GetSocketReady': missing return type; assumed to be a member function returning 'int'
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(104) : error C2079: 'sf::SelectorBase::mySet' uses undefined struct 'fd_set'
1>d:\sfml-1.6\include\sfml\network\selectorbase.hpp(105) : error C2079: 'sf::SelectorBase::mySetReady' uses undefined struct 'fd_set'
1>d:\sfml-1.6\include\sfml\network\selector.hpp(99) : error C2653: 'SocketHelper' : is not a class or namespace name
1>        d:\sfml-1.6\include\sfml\network\selector.hpp(105) : see reference to class template instantiation 'sf::Selector<Type>' being compiled
1>d:\sfml-1.6\include\sfml\network\selector.hpp(99) : error C2065: 'SocketType' : undeclared identifier
1>d:\sfml-1.6\include\sfml\network\selector.hpp(99) : error C2653: 'SocketHelper' : is not a class or namespace name
1>        c:\users\admin\desktop\windblight login\windblight login\client_instance.h(68) : see reference to class template instantiation 'sf::Selector<Type>' being compiled
1>        with
1>        [
1>            Type=sf::SocketTCP
1>        ]
1>d:\sfml-1.6\include\sfml\network\selector.hpp(99) : error C2065: 'SocketType' : undeclared identifier
1>c:\users\admin\desktop\windblight login\windblight login\windblight login.cpp(52) : error C2512: 'sf::Selector<Type>' : no appropriate default constructor available
1>        with
1>        [
1>            Type=sf::SocketTCP
1>        ]
1>c:\users\admin\desktop\windblight login\windblight login\windblight login.cpp(71) : warning C4018: '<' : signed/unsigned mismatch
1>Build log was saved at "file://c:\Users\admin\Desktop\windblight login\windblight login\Debug\BuildLog.htm"
1>windblight login - 103 error(s), 18 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
library conflict
« Reply #1 on: February 29, 2012, 03:51:53 pm »
Use SFML 2, which doesn't include winsock2.h in its public headers anymore.
Laurent Gomila - SFML developer