gfortran编译问题

内核编译和嵌入式产品的设计与开发
回复
WLJ
帖子: 2
注册时间: 2008-04-20 1:45
送出感谢: 0
接收感谢: 0

gfortran编译问题

#1

帖子 WLJ » 2008-04-20 4:50

各位大虾,偶刚开始学习gnu,在用gfortran编译program。只是一个子程序,用: gfortran arasch.F 命令编译,出现如下错误
arasch.F:11: warning: extra tokens at end of #include directive
arasch.F:11: error: parame.incl: No such file or directory
arasch.F:12: warning: extra tokens at end of #include directive
arasch.F:12: error: pmoist.incl: No such file or directory
arasch.F:13: warning: extra tokens at end of #include directive
arasch.F:13: error: param2.incl: No such file or directory
arasch.F:14: warning: extra tokens at end of #include directive
arasch.F:14: error: param3.incl: No such file or directory
若加以 -I. 参数 gfortran -I. arasch.F,则能找到include file,但是对于include里面的#ifndef 又有问题,错误提示如下
In file included from arasch.F:12:
./parame.incl:106: warning: extra tokens at end of #ifndef directive
./parame.incl:109: warning: extra tokens at end of #else directive
./parame.incl:112: warning: extra tokens at end of #endif directive
arasch.F:12: warning: extra tokens at end of #include directive

望大家指点
回复

回到 “内核及嵌入式开发”