Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Compilling F77 Files in Intel Visual Fortran

judios
Beginner
1,047 Views
I am compilling several files written in F77, using Intel Visual Fortran in Visual Studio 2008
The compiller gives me the following error
An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute

This seems to be a feature of F90 and up

Is there any way to force the compiler to use F77 only? I am using the flag to Fixed Format, but still produces the same error.

Thanks.
0 Kudos
1 Solution
GVautier
New Contributor III
1,047 Views
hello

ALLOCATE and allocatable arrays was not included ion F77 standard. So, your F77 sources files use an proprietary extension to F77. CVF and IVF can compile Microsoft F77 extension without modification but it seems that your F77 source files use another compiler extensions.

I think that you must change your source fils to accommodate to Microsoft extensions or F90 standard.

The Microsoft F77 extension syntax was :

REAL*8 array[allocatable](:)

ALLOCATE(array(dim))

...

DEALLOCATE(ARRAY)

View solution in original post

0 Kudos
2 Replies
GVautier
New Contributor III
1,048 Views
hello

ALLOCATE and allocatable arrays was not included ion F77 standard. So, your F77 sources files use an proprietary extension to F77. CVF and IVF can compile Microsoft F77 extension without modification but it seems that your F77 source files use another compiler extensions.

I think that you must change your source fils to accommodate to Microsoft extensions or F90 standard.

The Microsoft F77 extension syntax was :

REAL*8 array[allocatable](:)

ALLOCATE(array(dim))

...

DEALLOCATE(ARRAY)

0 Kudos
judios
Beginner
1,047 Views
Quoting - gvautier
hello

ALLOCATE and allocatable arrays was not included ion F77 standard. So, your F77 sources files use an proprietary extension to F77. CVF and IVF can compile Microsoft F77 extension without modification but it seems that your F77 source files use another compiler extensions.

I think that you must change your source fils to accommodate to Microsoft extensions or F90 standard.

The Microsoft F77 extension syntax was :

REAL*8 array[allocatable](:)

ALLOCATE(array(dim))

...

DEALLOCATE(ARRAY)


Thanks,

This solves my problem
0 Kudos
Reply