我正在尝试在预装有Microsoft Visual Studio 2008的Windows 7(64位)上运行Matlab代码。Matlab代码具有.cpp文件,需要使用opencv进行编译。
我正在使用:
system('"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\cl.exe" /I"C:\OpenCV2.1\include\opencv" camshift_wrapper.c');
我收到以下错误消息:
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
camshift_wrapper.c
c:\opencv2.1\include\opencv\cxtypes.h(52) : fatal error C1083: Cannot open include file: 'assert.h': No such file or directory
最佳答案
尝试将/I "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
添加到系统命令的参数字符串中。
关于visual-studio-2008 - 无法打开包含文件assert.h matlab system(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13344746/