为什么matlab用不了mex,【求助 】MATLAB 里面MEX的问题

初学者在MATLAB中尝试调用C程序,选择了LccC2.4.1作为编译器,并进行了配置。警告指出32位Windows MEX文件的扩展名已从.dll更改为.mexw32,可能不被MATLAB早期版本识别。已更新选项文件并确认设置正确。
摘要由CSDN通过智能技术生成

我是初学者,问的比较初级,现在要在MATLAB里面调用C程序,之前要编译,于是就这样了,不知道哪里出错了,请大家帮帮忙看一下,十分感谢啊

>> mex -setup

Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers [y]/n? y

Select a compiler:

[1] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio

[2] Lcc C version 2.4.1 in C:\PROGRAM FILES\MATLAB71\sys\lcc

[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio

[0] None

Compiler: 2

Please verify your choices:

Compiler: Lcc C 2.4.1

Location: C:\PROGRAM FILES\MATLAB71\sys\lcc

Are these correct?([y]/n): y

Try to update options file: C:\Documents and Settings\wangwei\Application Data\MathWorks\MATLAB\R14SP3\mexopts.bat

From template:              C:\PROGRAM FILES\MATLAB71\BIN\win32\mexopts\lccopts.bat

Done . . .

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

Warning: The file extension of 32-bit Windows MEX-files was changed

from ".dll" to ".mexw32" in MATLAB 7.1 (R14SP3). The generated

MEX-file will not be found by MATLAB versions prior to 7.1.

Use the -output option with the ".dll" file extension to

generate a MEX-file that can be called in previous versions.

For more information see:

MATLAB 7.1 Release Notes, New File Extension for MEX-Files on Windows

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值