您的位置:首页 > 其它

调试出现一大堆错误···

2016-06-06 11:28 274 查看
1>c:\program files\microsoft sdks\windows\v6.0a\include\tlhelp32.h(30) : error C2146: 语法错误 : 缺少“;”(在标识符“WINAPI”的前面)1>c:\program files\microsoft sdks\windows\v6.0a\include\tlhelp32.h(30) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int1>c:\program files\microsoft sdks\windows\v6.0a\include\tlhelp32.h(30) : error C2146: 语法错误 : 缺少“;”(在标识符“CreateToolhelp32Snapshot”的前面)1>c:\program files\microsoft sdks\windows\v6.0a\include\tlhelp32.h(30) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int1>c:\program files\microsoft sdks\windows\v6.0a\include\tlhelp32.h(31) : error C2065: “DWORD”: 未声明的标识符1>c:\program files\microsoft sdks\windows\v6.0a\include\tlhelp32.h(223) : fatal error C1003: 错误计数超过 100;正在停止编译
后来发现是头文件的位置有问题错误的时候是这样:#include <stdio.h>#include <tlhelp32.h>#include <windows.h>
改正后,正确运行:#include <stdio.h>#include <windows.h>#include <tlhelp32.h>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: