PDA

View Full Version : [JX] Lỗi khi build GameServer.exe nhờ giúp đỡ !



Mr.Admin
22-04-13, 02:52 PM
Deleting intermediate files and output files for project 'GameServer - Win32 Release'.
--------------------Configuration: GameServer - Win32 Release--------------------
Compiling...
StdAfx.cpp
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(68) : error C2065: 'SOCKET' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(68) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(68) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(72) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(88) : error C2146: syntax error : missing ')' before identifier 'hSocket'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(88) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(95) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(100) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(100) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(108) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(130) : error C2146: syntax error : missing ')' before identifier 'hSocket'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(130) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(130) : error C2071: 'LPFN_TRANSMITFILE' : illegal storage class
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(137) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(145) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(145) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(145) : error C2071: 'LPFN_ACCEPTEX' : illegal storage class
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\mswsock.h(153) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(83) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(99) : error C2146: syntax error : missing ';' before identifier 'fd_array'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(99) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(99) : error C2501: 'fd_array' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(102) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1420) : error C2143: syntax error : missing ';' before '__stdcall'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1420) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1420) : error C2370: 'SOCKET' : redefinition; different storage class
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1422) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1422) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1422) : error C2501: 'accept' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1425) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1443) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1443) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1443) : error C2491: 'bind' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1446) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1465) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1465) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1465) : error C2491: 'closesocket' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1465) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1481) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1481) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1481) : error C2491: 'connect' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1484) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1502) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1502) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1502) : error C2491: 'ioctlsocket' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1505) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1523) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1523) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1523) : error C2491: 'getpeername' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1526) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1544) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1544) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1544) : error C2491: 'getsockname' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1547) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1565) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1565) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1565) : error C2491: 'getsockopt' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1570) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1658) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1658) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1658) : error C2491: 'listen' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1660) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1711) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1711) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1711) : error C2491: 'recv' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1715) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1734) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1734) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1734) : error C2491: 'recvfrom' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1740) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1786) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1786) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1786) : error C2491: 'send' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1790) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1809) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1809) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1809) : error C2491: 'sendto' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1815) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1836) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1836) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1836) : error C2491: 'setsockopt' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1841) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1861) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1861) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1861) : error C2491: 'shutdown' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1863) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1878) : error C2143: syntax error : missing ';' before '__stdcall'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1878) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(1878) : error C2370: 'SOCKET' : redefinition; different storage class
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2347) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2347) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2347) : error C2491: 'WSAAsyncSelect' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2351) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2397) : error C2143: syntax error : missing ';' before '__stdcall'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2397) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2397) : error C2370: 'SOCKET' : redefinition; different storage class
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2399) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2399) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2399) : error C2501: 'WSAAccept' : missing storage-class or type specifiers
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2404) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2441) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2441) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2441) : error C2491: 'WSAConnect' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2448) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2487) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2487) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2487) : error C2491: 'WSADuplicateSocketA' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2490) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2495) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2495) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2495) : error C2491: 'WSADuplicateSocketW' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2498) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2533) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2533) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2533) : error C2491: 'WSAEnumNetworkEvents' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2536) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2600) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2600) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2600) : error C2491: 'WSAEventSelect' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2603) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2621) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2621) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2621) : error C2491: 'WSAGetOverlappedResult' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2626) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2646) : error C2146: syntax error : missing ')' before identifier 's'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2646) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2646) : error C2491: 'WSAGetQOSByName' : definition of dllimport data not allowed
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2649) : error C2059: syntax error : ')'
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE\winsock2.h(2649) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

GameServer.exe - 102 error(s), 27 warning(s)


mình build Gameserver.exe thì bị thế này.
Ai biết chỉ mình fix dùm !!
Thank nhiều !!!!

Mr.Admin
24-04-13, 10:31 PM
Không ai biết fix à. huhu
Mình mò quài ko khai báo vẩn bị lỏi

thienthanden2
24-04-13, 11:14 PM
Không ai biết fix à. huhu
Mình mò quài ko khai báo vẩn bị lỏi

Có thể là thiếu thư viện. Xem lại coi add đủ thư viện chưa bạn. Nói chung cái này khó hình dung nên hok ai biết đc đâu, phải trực tiếp làm thì may ra biết lỗi gì.