64位Matlab不能mex,解决在WIN7(64位)上Mex无法编译的问题

问题:

继续还是那套MATLAB代码点击打开链接

使用里面complie.m编译时出现一下错误提示:

**************************************************************************

Warning: The MATLAB C and Fortran API has changed to support MATLAB

variables with more than 2^32-1 elements. In the near future

you will be required to update your code to utilize the new

API. You can find more information about this at:

http://www.mathworks.com/support/solutions/data/1-5C27B9.html?solution=1-5C27B9

Building with the -largeArrayDims option enables the new API.

**************************************************************************

>> COMPILE

Compiling Normalization

D:\PROGRA~2\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'mxNormalize.cpp' failed.

??? Error using ==> mex at 207

Unable to complete successfully.

查了很久,发现是编译器的问题。

在MATLAB 7.8 (R2009a)及之后的版本,就会支持-largeArrayDims

安装 Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1".(下载地址)

选项中选择支持: Visual C++ 9.0 Compilers. These compilers allow you to target x86, x64, IA64 processor architectures."

看看有没这个文件 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\cl.exe。有就应该支持64位了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值