找回密码
 注册
Simdroid-非首页
查看: 129|回复: 4

matlab 中fortran编译器设置细节?

[复制链接]
发表于 2011-5-28 22:23:45 | 显示全部楼层 |阅读模式 来自 湖南长沙
我在安装编译器的时候出现如下问题
>> 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 5.0 in c:\program files\devstudio
[2] Lcc C version 2.4.1 in D:\MATLAB\sys\lcc
[3] Microsoft Visual C/C++ version 5.0 in C:\Program Files\DevStudio

[0] None

Compiler: 1

Please verify your choices:

Compiler: Digital Visual Fortran 5.0
Location: c:\program files\devstudio

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

Try to update options file: C:\Documents and Settings\耿文杰\Application Data\MathWorks\MATLAB\R14SP3\mexopts.bat
From template:              D:\MATLAB\BIN\win32\mexopts\df50opts.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
***************************************************************************

不知道怎么解决?有没有遇到同类问题安装不成功的 求解答 。
发表于 2011-5-28 22:41:46 | 显示全部楼层 来自 黑龙江哈尔滨
Simdroid开发平台
安装成功了,那个提示信息是一个警告,警告的内容说得很清楚了,好好看看英文就行了。
回复 不支持

使用道具 举报

 楼主| 发表于 2011-5-31 19:58:25 | 显示全部楼层 来自 湖南长沙
本帖最后由 messenger 于 2011-6-1 10:11 编辑

谢谢 可是我直接引用matlab 的例子的时候  就是不成功啊 出现什么不能编译连接的问题

>> mex mexlockf.f

  D:\MATLAB\BIN\MEX.PL: Error: Compile of 'mexlockf.f' failed.

??? Error using ==> mex
Unable to complete successfully
回复 不支持

使用道具 举报

发表于 2011-6-1 10:13:19 | 显示全部楼层 来自 黑龙江哈尔滨
这与Fortran编译器没关系,可能是你混合编程方面的错误,出现mex错误信息说明Fortran编译器已经装上了,否则不会出这个信息。

谢谢 可是我直接引用matlab 的例子的时候  就是不成功啊 出现什么不能编译连接的问题

>> mex mexlockf.f

  D:\MATLAB\BIN\MEX.PL: Error: Compile of 'mexlockf.f' failed.

??? Error using ==> mex
Un ...
地主2005 发表于 2011-5-31 19:58
回复 不支持

使用道具 举报

 楼主| 发表于 2011-6-3 21:01:24 | 显示全部楼层 来自 湖南长沙
谢谢!!!!!!!!!!!
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-1 02:26 , Processed in 0.041479 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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