声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1342|回复: 1

[求助]输 入mex-setup时遇到的问题

[复制链接]
发表于 2006-3-18 23:06 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
人在输入mex-setup时  遇到如下问题  请问如何解决<BR><BR><BR>Compiler: 3<BR> <BR>Please verify your choices: <BR> <BR>Compiler: Microsoft Visual C/C++ 6.0 <BR>Location: C:\Program Files\Microsoft Visual Studio <BR> <BR>Are these correct?([y]/n): y<BR> <BR>Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14SP3\mexopts.bat <BR>From template:              E:\PROGRAM FILES\MATLAB71\BIN\win32\mexopts\msvc60opts.bat <BR> <BR>Done . . . <BR> <BR>*************************************************************************** <BR>  Warning: The file extension of 32-bit Windows MEX-files was changed <BR>           from ".dll" to ".mexw32" in MATLAB 7.1 (R14SP3). The generated  <BR>           MEX-file will not be found by MATLAB versions prior to 7.1. <BR>           Use the -output option with the ".dll" file extension to <BR>           generate a MEX-file that can be called in previous versions. <BR>           For more information see:  <BR>           MATLAB 7.1 Release Notes, New File Extension for MEX-Files on Windows <BR>***************************************************************************
回复
分享到:

使用道具 举报

发表于 2006-3-19 11:12 | 显示全部楼层

回复:(lanxing199)[求助]输 入mex-setup时遇到的问...

<P> MATLAB now uses the extension .mexw32 for MEX-files on 32-bit versions of Windows. In previous versions, MATLAB used the extension .dll. </P>
<P>The MathWorks recommends that you recompile all MEX-files after installing MATLAB 7.1. MEX-files compiled in MATLAB 7.0.4 with .dll extensions should still work in MATLAB 7.1. </P>
<P>There may be two MEX-files with the same name, except that one has a .mexw32 extension and the other has a .dll extension. When these files are both on the MATLAB search path: If the two files are in the same directory, MATLAB uses the .mexw32 file. If the two files are in different directories, MATLAB uses the file in the directory that is higher on the search path. </P>
<P>If you want one of these two files to take precedence over the other, ensure that the directory that contains the file you want MATLAB to use is higher on the search path than the directory that contains the file you do not want MATLAB to use. </P>
<P>Previous versions of MATLAB do not recognize MEX-files compiled in MATLAB 7.1 with .mexw32 extensions. However, you can use the mex -output option in MATLAB 7.1 to build a MEX-file with a .dll extension that earlier versions of MATLAB can recognize. </P>
<P>You may need to update any M-files or makefiles that explicitly expect .dll extensions for compiled MEX-files. You can use the mexext function in MATLAB to obtain the extension for the platform and version you are working on. A new mexext script obtains the appropriate extension when executed from outside MATLAB, as in a makefile. </P>
<P>On Windows, MATLAB issues warnings at MEX setup time, compile time, and run-time to notify you of possible incompatibilities resulting from the change in MEX-file extension from .dll to .mexw32.</P>
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-26 05:13 , Processed in 0.056104 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表