How do I compile this Fortran code with new 2017 ifort?

前端 未结 1 528
清歌不尽
清歌不尽 2021-01-26 09:57

I have the following fortran code that compiles with pre 2017 ifort:

program parallel_m
contains
   character(500) function PARALLEL_message(i_ss)
     character         


        
相关标签:
1条回答
  • 2021-01-26 10:09

    Your program is illegal Fortran after the preprocessing because the // is interpretted as a C comment.

    Simply do not use icc but ifort. Ifort is for Fortran, icc is for C. Ifort uses a different preprocessor fpp which does not discard //.

    0 讨论(0)
提交回复
热议问题