VS 编译 matlab 的 m 文件
2011-08-02 21:02
239 查看
1 mex-setup
Select a compiler:
[1] Borland C++Builder version 5.0 in C:\Program Files\Borland
[2] Lcc C version 2.4 inF:\SOFT\SHARE\MATLAB65\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler:
2 mbuild –setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Borland C++Builder version 5.0 in C:\Program Files\Borland
[2] Lcc C version 2.4 in F:\SOFT\SHARE\MATLAB65\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler:
3 在matlab命令行中输入:
mcc -t -h -L C -W lib:lib_name -T link:lib m_file.m
以发现在m_file.m所在的目录中产生了一大堆文件.
Select a compiler:
[1] Borland C++Builder version 5.0 in C:\Program Files\Borland
[2] Lcc C version 2.4 inF:\SOFT\SHARE\MATLAB65\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler:
2 mbuild –setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Borland C++Builder version 5.0 in C:\Program Files\Borland
[2] Lcc C version 2.4 in F:\SOFT\SHARE\MATLAB65\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler:
3 在matlab命令行中输入:
mcc -t -h -L C -W lib:lib_name -T link:lib m_file.m
以发现在m_file.m所在的目录中产生了一大堆文件.
相关文章推荐
- Matlab中调用VS编译的exe文件并传递变量 的方法
- VS使用C语言调用控制台执行Matlab编译出的exe文件提示找不到matlab
- matlab+opencv+VS动态编译出错:
- VS 编译 QT文件
- VS2012 编译程序时报无法加载PDB文件错误解决方案
- VS配合VSS时,编译报错:未能向文件“....csproj.FileListAbsolute.txt”写入命令行,对路径的访问被拒绝。
- matlab采用mex编译多个cpp文件
- Linux使用GCC编译matlab的m文件使其可执行
- 【MATLAB与C的混合编程】之【C程序调用M文件编译后得到的DLL文件】
- Matlab .M文件编译成可执行文件.exe
- VS2012 编译程序时报无法加载PDB文件错误解决方案(转自http://www.aiuxian.com/article/p-236400.html)
- VS2013编译时出现无法打开包括文件: “SDKDDKVer.h”: No such file or director
- 关于vs编译后bin下的dll文件重新出现的问题
- VS反编译文件调试断点无法设置
- VS中DLL的导出宏的定义和头文件的位置导致的两类编译错误总结
- win10系统中ASP.NET(VS2013)和MATLAB混编,调用MATLAB生成的.dll文件
- 升级到VS2015 的 RC 文件包含 afxres.h,编译报错的解决办法
- 在WIN10系统下运行VS2013编译成功后出现:无法启动程序“.exe” 系统找不到指定文件的问题的解决方法
- MATLAB 调用编译.c/.cpp文件