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不对吗 展开
在进行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不对吗 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询