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

RECORD and STRUCTURE question

m_eagan
Beginner
336 Views
Hi, I just started working with the ifc and am trying to compile some legacy SGI code on Linux. However, I have encountered an early problem with structures in RECORD statements not being defined.

The compiler error is as follows,

Error 458: This Vax structure has not been defined.

What I am doing is as follows,

subroutine whatever
     
#include "File_where_structure is defined.f" 

record /StructureDefinedInIncludeFile/ myNewVariable


The problem is that the compiler is saying that StructureDefinedInIncludeFile has been undefined.

So my question is has anyone else had this problem? Or is there some specific compiler option that I need to use.

These are the compiler options I am using.

ifc -c -g -w90 -w95 -extend_source -I[INCLUDE_DIRECTORY] file.f

BTW, I have tried using the preprocessor to include the include files in the subroutine itself and this normally results in a world record for compiler errors in one compilation.

Thanks
0 Kudos
1 Reply
Steven_L_Intel1
Employee
336 Views
I'd have to see what was in the include file. Why not use INCLUDE rather than the preprocessor's #include?

I can't think of any options that would be relevant here.

Steve
0 Kudos
Reply