声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1308|回复: 2

[混合编程] 请教matlab与Fortran混合编程设置问题

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

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

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

x
我在D盘装得Fortran 6.5,以下是环境设置,但 编译matlab自带的yprimef.f有问题,不知怎么回事??
是环境没设置好吧??请高手指教,在此谢过!!

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

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

Select a compiler:
[1] Borland C++Builder version 6.0
[2] Borland C++Builder version 5.0
[3] Borland C++Builder version 4.0
[4] Borland C++Builder version 3.0
[5] Borland C/C++ version 5.02
[6] Borland C/C++ version 5.0
[7] Borland C/C++ (free command line tools) version 5.5
[8] Compaq Visual Fortran version 6.1
[9] Compaq Visual Fortran version 6.6
[10] Digital Visual Fortran version 6.0
[11] Digital Visual Fortran version 5.0
[12] Lcc C version 2.4
[13] Microsoft Visual C/C++ version 7.0
[14] Microsoft Visual C/C++ version 6.0
[15] Microsoft Visual C/C++ version 5.0
[16] WATCOM C/C++ version 11
[17] WATCOM C/C++ version 10.6

[0] None

Compiler: 9

The default location for Compaq Visual Fortran compilers is C:\Program Files\Microsoft Visual Studio,
but that directory does not exist on this machine.  

Use C:\Program Files\Microsoft Visual Studio anyway [y]/n? y

Please verify your choices:

Compiler: Compaq Visual Fortran 6.6
Location: C:\Program Files\Microsoft Visual Studio

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

The default options file:
"C:\Documents and Settings\xinfengxian\Application Data\MathWorks\MATLAB\R13\mexopts.bat"
is being updated from D:\MATLAB6.5\BIN\WIN32\mexopts\df66opts.bat...

>> mex yprimef.f
   Creating library _lib6643.lib and object _lib6643.exp
_lib6643.exp : error LNK2001: unresolved external symbol _MEXFUNCTION@16
yprimef.dll : fatal error LNK1120: 1 unresolved externals

  D:\MATLAB6.5\BIN\WIN32\MEX.PL: Error: Link of 'yprimef.dll' failed.

??? Error using ==> mex
Unable to complete successfully

[ 本帖最后由 xinyuxf 于 2007-7-22 16:13 编辑 ]
回复
分享到:

使用道具 举报

发表于 2006-11-17 09:31 | 显示全部楼层
估计是版本支持问题,不知道你的matlab是什么版本的

你选择9 Compaq Visual Fortran version 6.6看看
 楼主| 发表于 2006-11-17 15:55 | 显示全部楼层
版本:matlab 6.5 和Fortran 6.5
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-11-19 18:45 , Processed in 0.067460 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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