Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compilation Error

Michael7
Beginner
993 Views

The following directive in the beginning of my code (partially shown below)

!DEC$OBJCOMMENT LIB:'INLATHENA.LIB'
!
      Options /EXTEND_SOURCE
      Program MAIN
!
!:Variable Declarations Section
!
      Implicit None

causes the Intel compiler v16.0 Update 1 (pack 146) to issue the following error:

ALG01.FOR(3): remark #5082: Directive ignored - Syntax error, found HEX_OCT_BIN_CONSTANT 'BINLATHENA.LIB' when expecting one of: <CHARACTER_CONSTANT>
!DEC$OBJCOMMENT LIB:'INLATHENA.LIB'
--------------------^

There was no problem with the Compiler version 11.1. Does this mean that I can no longer use the above directive or is there a workaround?

Michael

 

0 Kudos
2 Replies
Steven_L_Intel1
Employee
993 Views

Put a space after !DEC$. We fixed a bug in support of continued directives, which means that the blank after the prefix is not optional in fixed-form source.

0 Kudos
Michael7
Beginner
993 Views

Thank you very much Steve

I truly appreciate your help. Your suggestion worked perfectly.

Merry Christmas and Happy New Year

Michael

 

0 Kudos
Reply