| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 4873 人关注过本帖
标题:执行 cl.exe 时出错,,,,,,,,,求高手出招了!!!!!!!
只看楼主 加入收藏
qwert8800
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-1-13
结帖率:0
收藏
已结贴  问题点数:20 回复次数:4 
执行 cl.exe 时出错,,,,,,,,,求高手出招了!!!!!!!
问题1.

--------------------Configuration: Example - Win32 Release--------------------
Compiling...
StdAfx.cpp
Compiling...
Example.cpp
MemLoadDll.cpp
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2065: '__in' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2146: syntax error : missing ')' before identifier 'LPVOID'
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2071: 'VirtualProtectT' : illegal storage class
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(101) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(104) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(340) : error C2110: cannot add two pointers
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(349) : error C2440: '=' : cannot convert from 'unsigned long' to 'unsigned long *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Generating Code...
执行 cl.exe 时出错.

update.dll - 1 error(s), 0 warning(s)





问题2.


--------------------Configuration: HlInit - Win32 Release--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
DTDY.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2065: 'LPMEMORYSTATUSEX' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2071: 'pNcGlobalMemoryStatusEx' : illegal storage class
HlInit.cpp
HlInitDlg.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2065: 'LPMEMORYSTATUSEX' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2071: 'pNcGlobalMemoryStatusEx' : illegal storage class
Generating Code...
执行 cl.exe 时出错.

update.dat - 1 error(s), 0 warning(s)






问题3.




--------------------Configuration: HlMain - Win32 Release--------------------
Compiling resources...
Compiling...
AudioManager.cpp
AVideoManager.cpp
Buffer.cpp
ClientSocket.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\ClientSocket.cpp(8) : fatal error C1083: Cannot open include file: 'MSTcpIP.h': No such file or directory
FileManager.cpp
HlMain.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\HideModule.h(3) : fatal error C1083: Cannot open include file: 'Winternl.h': No such file or directory
KernelManager.cpp
../../common\CursorInfo.h(28) : error C2065: 'IDC_HAND' : undeclared identifier
../../common\CursorInfo.h(28) : error C2440: 'initializing' : cannot convert from 'int' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
../../common\CursorInfo.h(59) : error C2065: 'CURSORINFO' : undeclared identifier
../../common\CursorInfo.h(59) : error C2146: syntax error : missing ';' before identifier 'ci'
../../common\CursorInfo.h(59) : error C2065: 'ci' : undeclared identifier
../../common\CursorInfo.h(60) : error C2228: left of '.cbSize' must have class/struct/union type
../../common\CursorInfo.h(61) : error C2065: 'GetCursorInfo' : undeclared identifier
../../common\CursorInfo.h(61) : error C2228: left of '.flags' must have class/struct/union type
../../common\CursorInfo.h(61) : error C2065: 'CURSOR_SHOWING' : undeclared identifier
../../common\CursorInfo.h(67) : error C2228: left of '.hCursor' must have class/struct/union type
../../common\CursorInfo.h(70) : error C2228: left of '.hCursor' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2065: '__in' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2146: syntax error : missing ')' before identifier 'HWND'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2071: 'GetWindowTextAT' : illegal storage class
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(710) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(722) : error C2064: term does not evaluate to a function
KeyboardManager.cpp
Manager.cpp
MyAudio.cpp
RegEditEx.cpp
ScreenManager.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(69) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(73) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(89) : error C2146: syntax error : missing ')' before identifier 'hSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(96) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(101) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(109) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(131) : error C2146: syntax error : missing ')' before identifier 'hSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(131) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(131) : error C2071: 'LPFN_TRANSMITFILE' : illegal storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(138) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(146) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(146) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(146) : error C2071: 'LPFN_ACCEPTEX' : illegal storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(154) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(85) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(101) : error C2146: syntax error : missing ';' before identifier 'fd_array'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(101) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(101) : error C2501: 'fd_array' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(104) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1422) : error C2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1422) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1422) : error C2370: 'SOCKET' : redefinition; different storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1424) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1424) : error C2501: 'accept' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1427) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1445) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1445) : error C2491: 'bind' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1448) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1467) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1467) : error C2491: 'closesocket' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1467) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1483) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1483) : error C2491: 'connect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1486) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1504) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1504) : error C2491: 'ioctlsocket' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1507) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1525) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1525) : error C2491: 'getpeername' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1528) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1546) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1546) : error C2491: 'getsockname' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1549) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1567) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1567) : error C2491: 'getsockopt' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1572) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1660) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1660) : error C2491: 'listen' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1662) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1713) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1713) : error C2491: 'recv' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1717) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1736) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1736) : error C2491: 'recvfrom' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1742) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1788) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1788) : error C2491: 'send' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1792) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1811) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1811) : error C2491: 'sendto' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1817) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1838) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1838) : error C2491: 'setsockopt' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1843) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1863) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1863) : error C2491: 'shutdown' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1865) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1880) : error C2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1880) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1880) : error C2370: 'SOCKET' : redefinition; different storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2349) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2349) : error C2491: 'WSAAsyncSelect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2353) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2399) : error C2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2399) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2399) : error C2370: 'SOCKET' : redefinition; different storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2401) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2401) : error C2501: 'WSAAccept' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2406) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2443) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2443) : error C2491: 'WSAConnect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2450) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2489) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2489) : error C2491: 'WSADuplicateSocketA' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2492) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2497) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2497) : error C2491: 'WSADuplicateSocketW' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2500) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2535) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2535) : error C2491: 'WSAEnumNetworkEvents' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2538) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2602) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2602) : error C2491: 'WSAEventSelect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2605) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2623) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2623) : error C2491: 'WSAGetOverlappedResult' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2628) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2648) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2648) : error C2491: 'WSAGetQOSByName' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2651) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(2651) : fatal error C1003: error count exceeds 100; stopping compilation
ScreenSpy.cpp
../../common\CursorInfo.h(28) : error C2065: 'IDC_HAND' : undeclared identifier
../../common\CursorInfo.h(28) : error C2440: 'initializing' : cannot convert from 'int' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
../../common\CursorInfo.h(59) : error C2065: 'CURSORINFO' : undeclared identifier
../../common\CursorInfo.h(59) : error C2146: syntax error : missing ';' before identifier 'ci'
../../common\CursorInfo.h(59) : error C2065: 'ci' : undeclared identifier
../../common\CursorInfo.h(60) : error C2228: left of '.cbSize' must have class/struct/union type
../../common\CursorInfo.h(61) : error C2065: 'GetCursorInfo' : undeclared identifier
../../common\CursorInfo.h(61) : error C2228: left of '.flags' must have class/struct/union type
../../common\CursorInfo.h(61) : error C2065: 'CURSOR_SHOWING' : undeclared identifier
../../common\CursorInfo.h(67) : error C2228: left of '.hCursor' must have class/struct/union type
../../common\CursorInfo.h(70) : error C2228: left of '.hCursor' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ScreenSpy.cpp(320) : error C2065: 'CAPTUREBLT' : undeclared identifier
ShellManager.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(198) : error C2065: '__in' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(198) : error C2146: syntax error : missing ')' before identifier 'HANDLE'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(198) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(198) : error C2071: 'TerminateProcessT' : illegal storage class
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(200) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(208) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(217) : error C2146: syntax error : missing ')' before identifier 'HANDLE'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(217) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(217) : error C2071: 'DisconnectNamedPipeT' : illegal storage class
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(218) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(222) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(224) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(226) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(228) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\ShellManager.cpp(304) : error C2064: term does not evaluate to a function
SystemManager.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\SystemManager.cpp(8) : fatal error C1083: Cannot open include file: 'psapi.h': No such file or directory
until.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\until.cpp(6) : fatal error C1083: Cannot open include file: 'Wtsapi32.h': No such file or directory
VideoCap.cpp
Generating Code...
执行 cl.exe 时出错.

MainDll.dll - 1 error(s), 0 warning(s)










总的问题来说就是这个——————————————执行 cl.exe 时出错.————————————————



















搜索更多相关主题的帖子: Documents before 
2012-02-07 20:24
a8618
Rank: 2
等 级:论坛游民
帖 子:2
专家分:17
注 册:2012-2-6
收藏
得分:7 
天书啊,帮顶
2012-02-08 03:21
BianChengNan
Rank: 8Rank: 8
等 级:贵宾
威 望:13
帖 子:302
专家分:972
注 册:2011-11-30
收藏
得分:7 
以下是引用qwert8800在2012-2-7 20:24:42的发言:

问题1.

--------------------Configuration: Example - Win32 Release--------------------
Compiling...
StdAfx.cpp
Compiling...
Example.cpp
MemLoadDll.cpp
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2065: '__in' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2146: syntax error : missing ')' before identifier 'LPVOID'
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(97) : error C2071: 'VirtualProtectT' : illegal storage class
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(101) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(104) : error C2064: term does not evaluate to a function
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(340) : error C2110: cannot add two pointers
C:\Documents and Settings\Administrator\桌面\Server\Loader\MemLoadDll.cpp(349) : error C2440: '=' : cannot convert from 'unsigned long' to 'unsigned long *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Generating Code...
执行 cl.exe 时出错.

update.dll - 1 error(s), 0 warning(s)





问题2.


--------------------Configuration: HlInit - Win32 Release--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
DTDY.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2065: 'LPMEMORYSTATUSEX' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2071: 'pNcGlobalMemoryStatusEx' : illegal storage class
HlInit.cpp
HlInitDlg.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2065: 'LPMEMORYSTATUSEX' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlInit\DTDY.h(50) : error C2071: 'pNcGlobalMemoryStatusEx' : illegal storage class
Generating Code...
执行 cl.exe 时出错.

update.dat - 1 error(s), 0 warning(s)






问题3.




--------------------Configuration: HlMain - Win32 Release--------------------
Compiling resources...
Compiling...
AudioManager.cpp
AVideoManager.cpp
Buffer.cpp
ClientSocket.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\ClientSocket.cpp(8) : fatal error C1083: Cannot open include file: 'MSTcpIP.h': No such file or directory
FileManager.cpp
HlMain.cpp
C:\Documents and Settings\Administrator\桌面\Server\HlMain\HideModule.h(3) : fatal error C1083: Cannot open include file: 'Winternl.h': No such file or directory
KernelManager.cpp
../../common\CursorInfo.h(28) : error C2065: 'IDC_HAND' : undeclared identifier
../../common\CursorInfo.h(28) : error C2440: 'initializing' : cannot convert from 'int' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
../../common\CursorInfo.h(59) : error C2065: 'CURSORINFO' : undeclared identifier
../../common\CursorInfo.h(59) : error C2146: syntax error : missing ';' before identifier 'ci'
../../common\CursorInfo.h(59) : error C2065: 'ci' : undeclared identifier
../../common\CursorInfo.h(60) : error C2228: left of '.cbSize' must have class/struct/union type
../../common\CursorInfo.h(61) : error C2065: 'GetCursorInfo' : undeclared identifier
../../common\CursorInfo.h(61) : error C2228: left of '.flags' must have class/struct/union type
../../common\CursorInfo.h(61) : error C2065: 'CURSOR_SHOWING' : undeclared identifier
../../common\CursorInfo.h(67) : error C2228: left of '.hCursor' must have class/struct/union type
../../common\CursorInfo.h(70) : error C2228: left of '.hCursor' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2065: '__in' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2146: syntax error : missing ')' before identifier 'HWND'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(707) : error C2071: 'GetWindowTextAT' : illegal storage class
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(710) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\桌面\Server\HlMain\common\KernelManager.cpp(722) : error C2064: term does not evaluate to a function
KeyboardManager.cpp
Manager.cpp
MyAudio.cpp
RegEditEx.cpp
ScreenManager.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(69) : error C2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(73) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(89) : error C2146: syntax error : missing ')' before identifier 'hSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(96) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(101) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(109) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(131) : error C2146: syntax error : missing ')' before identifier 'hSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(131) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(131) : error C2071: 'LPFN_TRANSMITFILE' : illegal storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(138) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(146) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(146) : error C2165: 'left-side modifier' : cannot modify pointers to data
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(146) : error C2071: 'LPFN_ACCEPTEX' : illegal storage class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mswsock.h(154) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(85) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(101) : error C2146: syntax error : missing ';' before identifier 'fd_array'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(101) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(101) : error C2501: 'fd_array' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(104) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1422) : error C2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1422) : error C2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock2.h(1422) : error C2370: 'SOCKET' : red ...
先弱弱的问一句,楼主看的懂这些提示信息吗?如果看的懂请一条一条的排查下,看看是否有拼写错误。然后再发上来,直接发这么多错误上来,没有源代码,我是爱莫能助
楼主好运

我的群:149544757 C/C++/Assembly 喜欢交流的朋友进,进群请写消息
2012-02-08 09:21
smallmoon521
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:4
帖 子:517
专家分:1373
注 册:2008-4-21
收藏
得分:7 
这么多错误,LZ都可以给精简成一句话,霸气啊
看样子,LZ应该是在编译别人的源码吧?

看到了VirtualProtectT,哎...
最近还在为这个玩意头痛

为游戏狂~~!!    大家努力编哈!
2012-02-10 13:46
jiayou123
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-8-27
收藏
得分:0 
楼主 你的问题最后怎么解决的?我现在也遇到一样的问题 麻烦指导下~~~
2014-08-27 19:29
快速回复:执行 cl.exe 时出错,,,,,,,,,求高手出招了!!!!!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018134 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved