调试出现一大堆错误···
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>
后来发现是头文件的位置有问题错误的时候是这样:#include <stdio.h>#include <tlhelp32.h>#include <windows.h>
改正后,正确运行:#include <stdio.h>#include <windows.h>#include <tlhelp32.h>
相关文章推荐
- vs2008 error C2440
- fatal error LNK1168: 无法打开 xxx.exe 进行写入
- "EIPAbstractError" exception with "No peer with the interface with guid [...] has been registered".
- CString sring char* char[]之间的转换
- MFC中CString转换成char数组【转】
- VS2008如何打开VS2010创建的项目
- 跑马灯效果的TextView之singLine 和maxLines
- vc90.pdb 不是创建此预编译头时使用的 pdb 文件,请重新创建预编译头
- pat-函数编程题5-2(然后是几点)
- 天书夜读:入手篇 熟悉汇编
- VS2008编译错误:fatal error C1902: 程序数据库管理器不匹配;请检查安装
- xp和Ubantu双系统删掉Ubantu (mbrfix工具)
- 修改android签名证书keystore
- android 网络编程基础
- win7制作U盘引导安装Ubantu12.04
- 虚拟机设置从U盘启动
- 32位PE系统安装64位原版win7系统
- tomcat+redis集群管理session
- 华硕笔记本电脑BIOS设置fancystart后黑屏
- 任务管理器显示不全