加载中…
博文
标签:

matlab

r2010a

vc2010

混合编程

编译器

安装

补丁

error

char16_t

杂谈

分类: 学习

1、安装补丁VS2010MEXSupport.zip

   参考http://www.mathworks.cn/support/solutions/en/data/1-D5W493/index.html?solution=1-D5W493

   由于MATLAB R2010a 发布的时间要比 VS2010早,所以在该版本识别不了VC++2010编译器。不过R2010a之后的版本应该不会有这种问题了。

   解压补丁包,将其中的文件放到 D:\Program Files\MATLAB\R2010a\bin\win32\mexopts 文件夹下。


2、在MATLAB中安装VC++ 2010 编译器

   打开Matlab,在 command window 中输入 mex -setup

————————————————————————————————————————————-

>> mex -setup
Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers [y]/n? n  (一定要选择 n)

Select a compiler:
[1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[2] Intel C++ 9.1

  
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有