![](/img/trans.png)
[英]fatal error C1083: Cannot open include file: 'vld.h': No such file or directory
[英]fatal error C1083 : Cannot open include file: 'mexutils.h': No such file or directory
我想在MATLAB中將c ++文件編譯為mex文件,即:“ mexLasso.cpp”。
這些是我采取的步驟,但出現以下錯誤。 問題是什么?
1.將文件“ mexLasso.cpp”和“ mexutils.h”放在一個文件夾中。
2.設置編譯器:
mex -setup C++
我收到:
MEX configured to use 'Microsoft Visual C++ 2013 Professional' for C++ language compilation.
3.運行命令:
mex C:\...\mexLasso.cpp
我收到以下錯誤:
Error using mex
mexLasso.cpp
C:\...\mexLasso.cpp(33) : fatal error C1083: Cannot
open include file: 'mexutils.h': No such file or directory
有人可以幫助我們我們所缺少的嗎?
在mex
命令行工具參考中 ,有一個用於添加包含路徑的參數:
-Ipathname
將路徑名添加到要搜索#include文件的文件夾列表中。
不要在I和路徑名之間添加空格。
像這樣:
mex -v -IC:\path\to\mexutils_h\ mexLasso.cpp
請注意,使用-I
您未指定標頭,而是指定了包含一個或多個標頭文件的路徑。
感謝您的意見。 我認為解決問題的好方法是在我的計算機上安裝SPAMS並成功編譯它。 我已經發布了我在這篇文章中采取的步驟:
如何在Windows 8.1下的Matlab 2014b中安裝SPAMS工具箱
我可以在那兒發表您的意見嗎? 對不起,重復消息,僅是所討論主題的相關性和重要性。
非常感謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.