matlab 调用 fortran 程序 20

我想在matlab中调用已编好的fortranmex文件在进行mex-setup配置时,配置的是MATLAB自带的LccCversion2.4,运行时总是报错,如下:>>... 我想在matlab中调用已编好的fortran mex文件
在进行mex -setup配置时,配置的是MATLAB自带的Lcc C version 2.4,运行时总是报错,如下:
>> mex timestwo.f
lcc preprocessor warning: timestwo.f:61 No newline at end of file
Error timestwo.f: 2 syntax error; found `timestwo' expecting `;'
Error timestwo.f: 3 extraneous old-style parameter list
Error timestwo.f: 3 syntax error; found `real' expecting `;'
Error timestwo.f: 3 syntax error; found `*' expecting `;'
Error timestwo.f: 3 missing identifier
Error timestwo.f: 3 syntax error; found `8' expecting `;'
Error timestwo.f: 3 unrecognized declaration
Error timestwo.f: 4 syntax error; found `C' expecting `;'
Error timestwo.f: 5 syntax error; found `y' expecting `;'
Error timestwo.f: 6 initializer must be constant
Error timestwo.f: 6 syntax error; found `return' expecting `;'
Error timestwo.f: 6 skipping `return'
Error timestwo.f: 11 syntax error; found `C' expecting `;'
Error timestwo.f: 11 syntax error; found `Computational' expecting `;'
Error timestwo.f: 11 syntax error; found `subroutine' expecting `;'
Error timestwo.f: 12 syntax error; found `subroutine' expecting `;'
Error timestwo.f: 12 syntax error; found `timestwo' expecting `;'
Error timestwo.f: 13 extraneous old-style parameter list
Error timestwo.f: 13 syntax error; found `real' expecting `;'
Error timestwo.f: 13 syntax error; found `*' expecting `;'
Error timestwo.f: 13 too many errors

C:\PROGRA~1\MATLAB\R2006B\BIN\MEX.PL: Error: Compile of 'timestwo.f' failed.

??? Error using ==> mex
Unable to complete successfully.
还望高手指点呀!拜托拜托!!!!!!!!!!!
那是要在mex -setup时配置fortran编译器了!?
但是我的装的是Fortran PowerStation 4.0,在mex -setup时候找不到,可以找到VC/VC++的
是安装的Fortran不对吗
展开
 我来答
tanarri
2008-07-09 · TA获得超过1.1万个赞
知道大有可为答主
回答量:5123
采纳率:33%
帮助的人:8081万
展开全部
fortran我不清楚,但lcc是用于编译c的
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式