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

Error 1 error #5508: Declaration of routine 'FRCVOL' conflicts with a previous declaratio

egpuckett
Beginner
980 Views
Hi,

I am developing an all FORTRAN code -- actually all FORTRAN 77 constructs, nothing fancy -- within Microsoft Visual Studio 2008 on a IBM / Lenovo ThinkPad 61p running Vista Ultimate OS. I have recently downloaded the latest fortran compiles for IA32 w_cprof_p_11.0.074_ia32.exe and installed it. Also, last night I downloaded and installed the latest Math Kernel Libraries (MKL) "w_mkl_p_10.1.2.026.exe".

My problem predates the download of MKL 10.1.2.026 and probably predates the installation of "w_cprof_p_11.0.074_ia32.exe".

I can no longer compile my projects and solutions. I get error messages like

" error #5508: Declaration of routine 'FRCVOL' conflicts with a previous declaration"

If I comment out the offending routine, I simply get the same error message for another routine.

I have even tried to create an entire new solution by making copies of the source *.f and header *.fi files from the project / solution that was producing the error, and adding them to the new project with an entirely new name, and I still get the same error.

I have tried "cleaning" both the solution and the project and the "Clean Project Name" under the "Build" menu button in the Microsoft Visual Studioi 2008 Window and that does not work.

I am completely confused as to what is going on.

On piece of information that may be relevant is that immediately prior to installing "w_cprof_p_11.0.074_ia32.exe" the version on Intel Fortran I was using was the one for both 32 and 64 bit machines. "w_cprof_p_11.0.074_ia32.exe" It was a version of Intel Fortran available prior to "w_cprof_p_11.0.074_ia32.exe" and when I downloaded either "w_cprof_p_11.0.074_ia32.exe" or the 32 + 64 bit version (I can't remember which and opend it it told me that it was going to convert my project files and asked for permission to do that.

Thanks for any help you can give,

Gerry Puckett

egpuckett@ucdavis.edu
0 Kudos
3 Replies
Alan_H_
Beginner
980 Views
I am having exactly the same problem. Clearly a bug. I have isolated it to calling subroutines and functions in another source file. The compiler points to the main subroutine as the source of the "error" whereas it stems from a call within that subroutine. This "error" does not occur when all the subroutines are in the same physical file.

0 Kudos
IHansen
Beginner
980 Views

Hi
I had the same problem. It is apparantly caused by automatic generation of interface.
go into: Projet>fortran>diagnosis>generate interface block
and set the option to no
Then you can rebuild the project.
that solved the problem for me.
If I put the generation of interface blocks back on in a later rebuild that works also.
0 Kudos
egpuckett
Beginner
980 Views
Quoting - IHansen

Hi
I had the same problem. It is apparantly caused by automatic generation of interface.
go into: Projet>fortran>diagnosis>generate interface block
and set the option to no
Then you can rebuild the project.
that solved the problem for me.
If I put the generation of interface blocks back on in a later rebuild that works also.


This appears to fix the problem. I need to work with my code for a few weeks to be certain.

Thanks!

- EGP

P.S. I tried to rate your solution a "5 Star" but it wound up with 1 Star because I was unfamilar with the system and I don't know how to change it.
0 Kudos
Reply