crazyoctopus 2014-07-11 07:56 采纳率: 0%
浏览 3118

Code::Blocks怎样自动识别Fortran源码格式?

本人菜鸟,在用Code::Blocks编译一个大型Fortran程序时遇到以下错误信息:
-------------- Build: Debug in BernLib (compiler: PGI Fortran Compiler)---------------

pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\AMBCHN.f -o obj\Debug\LibBERN\FOR\AMBCHN.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\AMBSET.f -o obj\Debug\LibBERN\FOR\AMBSET.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\ARGLAT.f -o obj\Debug\LibBERN\FOR\ARGLAT.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\BESTN.f -o obj\Debug\LibBERN\FOR\BESTN.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\CCOR.f -o obj\Debug\LibBERN\FOR\CCOR.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\CORDUP.f -o obj\Debug\LibBERN\FOR\CORDUP.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\CURARC.f -o obj\Debug\LibBERN\FOR\CURARC.o
pgfortran.exe -g -module obj\Debug\ -c ..\LibBERN\FOR\D_COMJPL.f90 -o obj\Debug\LibBERN\FOR\D_COMJPL.o
PGF90-S-0021-Label field of continuation line is not blank (..\LibBERN\FOR\D_COMJPL.f90: 38)
PGF90-S-0021-Label field of continuation line is not blank (..\LibBERN\FOR\D_COMJPL.f90: 43)
PGF90-S-0044-Multiple declaration for symbol ksize (..\LibBERN\FOR\D_COMJPL.f90: 45)
PGF90-S-0044-Multiple declaration for symbol irecsz (..\LibBERN\FOR\D_COMJPL.f90: 45)
PGF90-S-0021-Label field of continuation line is not blank (..\LibBERN\FOR\D_COMJPL.f90: 48)
PGF90-S-0044-Multiple declaration for symbol jplnam (..\LibBERN\FOR\D_COMJPL.f90: 46)
PGF90-W-0024-CHARACTER or Hollerith constant truncated to fit data type (..\LibBERN\FOR\D_COMJPL.f90: 46)
0 inform, 1 warnings, 6 severes, 0 fatal for d_comjpl
Process terminated with status 2 (0 minute(s), 2 second(s))
6 error(s), 1 warning(s) (0 minute(s), 2 second(s))

程序中既有固定格式源文件,也有自由格式源文件。在编译固定格式源程序的时候没有问题,但是编译自由格式的时候就出问题了。现在基本可以确定是因为编译器把自由格式的源程序当做是固定格式的来编译。
不知道怎么样设置Code::Blocks根据源程序后缀名自动识别固定格式还是自由格式?请各位大神赐教。

  • 写回答

1条回答

  • chulizi_sjtu 2017-08-21 14:20
    关注

    把文件后缀改为.f90既可

    评论

报告相同问题?

悬赏问题

  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程