OpenCV3+VS2015 配置问题(x64)
1、计算机模块 x64与x82不符
debug x86 属性配置
debug x64 属性配置
2、出现Debug Assertion Failed!错误
Debug Assertion Failed!
Program: ...workspace\FileConverter\FileHandler\x64\Debug\FileHandler.exe
File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 980
Expression: __acrt_first_block == header
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
环境配置有误,应该是vc14的在前,vc14代表VS2015,vc12代表VS2013,用哪个版本就把哪个版本放在前面,但如果两个都要用的话就不知道了。环境配置完需要重启电脑才能生效。
主要的配置步骤
打开视图→其他窗口→属性管理器,在右边展开项目,看需求选择win32(对应x86)或者x64,右击属性。
1、
2、
3、