visual-studio-2008 - 无法打开包含文件assert.h matlab system()

标签 visual-studio-2008 matlab opencv

我正在尝试在预装有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/

相关文章:

visual-studio-2008 - 如何在 Visual Studio 2005 中使用 .NET 3.0?

MATLAB 根函数在 MATLAB 和 Simulink 中的行为不同?

Matlab:sign()函数的傅里叶系数正在振荡

c++ - Matlab 与 C++ 运行时比较

c - 在opencv中使用中值滤波器进行图像压缩但不使用中值滤波器函数

visual-studio-2008 - Visual Studio 2008 SP1 “Package Load Failure” 错误

c++ - 当我什至无法进入代码时如何调试 "This application has requested the Runtime to terminate it in an unusual way."?

C++:使用迭代器替换部分字符串不起作用

python - 如何更改opencv检测到的刻度的形状

python - cv2.addWeighted 除了一些颜色