wolong 发表于 2006-11-16 23:59

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

我在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 /n? n

Select a compiler:
Borland C++Builder version 6.0
Borland C++Builder version 5.0
Borland C++Builder version 4.0
Borland C++Builder version 3.0
Borland C/C++ version 5.02
Borland C/C++ version 5.0
Borland C/C++ (free command line tools) version 5.5
Compaq Visual Fortran version 6.1
Compaq Visual Fortran version 6.6
Digital Visual Fortran version 6.0
Digital Visual Fortran version 5.0
Lcc C version 2.4
Microsoft Visual C/C++ version 7.0
Microsoft Visual C/C++ version 6.0
Microsoft Visual C/C++ version 5.0
WATCOM C/C++ version 11
WATCOM C/C++ version 10.6

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 /n? y

Please verify your choices:

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

Are these correct?(/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 编辑 ]

happy 发表于 2006-11-17 09:31

估计是版本支持问题,不知道你的matlab是什么版本的

你选择9 Compaq Visual Fortran version 6.6看看

wolong 发表于 2006-11-17 15:55

版本:matlab 6.5 和Fortran 6.5
页: [1]
查看完整版本: 请教matlab与Fortran混合编程设置问题