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

1 error #5508: Declaration of routine 'FOO' conflicts with a previous declaration

egpuckett
Beginner
692 Views
Hi All,

I am using Intel Visal Fortran Compiler for Windows -- all code is written in F77 and is very simple -- with Microsoft Visual Studio 2008.

When I try to start a new Project and then copy my *.f files from a previous Project directory (by hand; i.e., not via Microsoft Visual Studio 2008), and add them to my new project, and then compile, I get this error:

error #5508: Declaration of routine 'TEST_PWLIRA_ON_A_CIRCLE' conflicts with a previous declaration C:\Users\egp\Documents\Visual Studio 2008\Projects\EGP_PWLIRA\EGP_PWLIRA\Test_PWLIRA_on_a_Circle.f

This happens for all, or almost all, of the routines that I want to use from previous projects. I do edit and revise the code in the *.f files before trying to compile them.

I have little or no knowledge of Microsoft Visual Studio 2008, and it's conventions, etc. I am a very experienced Fortran programmer on everything from Sun workstations and Cray computers (remember those?) to you name it. But Microsoft Visual Studio 2008 produces errors that make no sense to me and seem to have to do with it's idea of what a project and a solution is, etc.

Thanks in advance for any help you can give.

- Gerry Puckett
0 Kudos
1 Reply
egpuckett
Beginner
692 Views
Hi Again,

Apparently, I sent a similar post in April and got an answer that worked for me.

My apologies ...

- Gerry
0 Kudos
Reply