缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int

1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(30): error C2146: 语法错误: 缺少“;”(在标识符“WINAPI”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(30): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(30): error C2146: 语法错误: 缺少“;”(在标识符“CreateToolhelp32Snapshot”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(30): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(31): error C2065: “DWORD”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(31): error C2146: 语法错误: 缺少“)”(在标识符“dwFlags”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(31): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(33): error C2059: 语法错误:“)”
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(64): error C2146: 语法错误: 缺少“;”(在标识符“dwSize”的前面)

1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\tlhelp32.h(64): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int



QT里用新下的版本实现以前跑通的代码,出现类似上边的错误,把新加的文件,用记事本打开再保存一下,在运行,


error LNK1181:无法打开输入文件\lib.obj”


如图所示,

解决办法:
CONFIG(debug,debug|release) {
 LIBS +=  D:/Opencv3.3/opencv/build/x64/vc14/lib/opencv_world330d.lib
 } else {
 LIBS +=  D:/Opencv3.3/opencv/build/x64/vc14/lib/opencv_world330.lib
 }


你可能感兴趣的:(QT)