菜帮子 发表于 2007-1-13 17:32

提问:关于FORTRAN调用MATLAB引擎

按照如下编译、连接设置:
#1.安装 软件版本: Compaq Visual Fortran(以下简称CVF)6.6 Matlab 6.5 安装路径: CVF: D:\Program Files\Microsoft Visual Studio Matlab: E:\MATLAB6p5
#2.配置mex 在matlab下运行命令mex –setup,然后按提示选择CVF编译器
#3.配置编译环境:在CVF下编译   
1.新建一个项目   
2.在tools->directory 里设置 include 和 lib目录 包括以下目录 include ->D:\Program Files\Microsoft Visual Studio\DF98\Include
include->D:\Program Files\Microsoft Visual Studio\DF98\IMSL\Include
include->E:\MATLAB6p5\EXTERN\INCLUDE   
lib->E:\MATLAB6p5\EXTERN\LIB\WIN32
lib->E:\MATLAB6p5\EXTERN\LIB\WIN32\DIGITAL\DF60
lib->D:\Program Files\Microsoft Visual Studio\DF98\IMSL\Lib
lib->D:\Program Files\Microsoft Visual Studio\DF98\Lib   
3. 在project->setting->link->Object/library modules里添加libmx.lib libmat. lib libeng.lib

然后在CVF中按F7编译连接,出现如下提示信息:
Linking...
LINK : fatal error LNK1104: cannot open file "libmx.lib,libmat.lib,libeng.lib"
Error executing link.exe.

EXAMPLE.exe - 1 error(s), 0 warning(s)

请问可能是哪方面的问题?Linking...
LINK : fatal error LNK1104: cannot open file "libmx.lib,libmat.lib,libeng.lib"
Error executing link.exe.

EXAMPLE.exe - 1 error(s), 0 warning(s)
页: [1]
查看完整版本: 提问:关于FORTRAN调用MATLAB引擎