Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
27 Views

Compiling example code

Hi,

I'm trying to compile the example code from the "Intel Fortran Compiler 17.0 Developer Guide and Reference" in section "Language reference" --> "Data Transfer I/O Statements" --> "User Defined Derived Type I/O"--> "Examples of User-Defined Derived-Type I/O" --> Example 4. If I compile this code with "ifort -stand f08 -o test test.f90" I get amongst others following error message:

test.f90(13): error #5082: Syntax error, found IDENTIFIER 'UNFORMATTED' when expecting one of: * .NOT. . + - /) ** / // .LT. < .LE. <= .EQ. == .NE. /= .GT. > ...
        GENERIC :: WRITE (UNFORMATTED) => MY_UNFMT_WRITE

I tried to use different standards like 03 and 95 and looked for compiler options that could resolve this but no success.. Any help how to compile?

 

0 Kudos
2 Replies
Highlighted
Black Belt
27 Views

The program source in the PDF has two lines collapsed:

    INTEGER :: IOSTAT    CHARACTER(LEN=100) :: IOMSG
should be
    INTEGER :: IOSTAT
    CHARACTER(LEN=100) :: IOMSG
 
0 Kudos
Highlighted
Employee
27 Views

Our apologies. I reported this to our Documentation team.

(Internal tracking id: DPD200417204)

0 Kudos