Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
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 Discussões

Compilling F77 Files in Intel Visual Fortran

judios
Principiante
1.041 Visualizações
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 Solução
GVautier
Novo colaborador III
1.041 Visualizações
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)

Ver solução na publicação original

2 Respostas
GVautier
Novo colaborador III
1.042 Visualizações
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)

judios
Principiante
1.041 Visualizações
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
Responder