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

Another bad compile message

WSinc
New Contributor I
485 Views

I dont understand why this gives me error #5508.

Seems pretty straightforward. I think the compiler is overloaded,

I could try splitting the source into two or more smaller ones.

 

I uploaded 2 source files - where did they go ?

 

I will upload them again.

0 Kudos
3 Replies
Lorri_M_Intel
Employee
485 Views

The problem is that there are two "end" statements in kepler.f90.

I agree, the second message is not helpful, but definitely goes away if you remove the extra 'end' statement.

(this was the second message)

kepler.f90(97): error #5508: Declaration of routine '_UNNAMED_MAIN$$' conflicts
with a previous declaration
  end
--^

0 Kudos
WSinc
New Contributor I
485 Views

Thanks for spotting that -

Although I feel it could have been more direct.

 

LIKE "There are two main programs", for example.

0 Kudos
Lorri_M_Intel
Employee
485 Views

:-)

The first message was:

kepler.f90(97): warning #5427: Program may contain only one main entry routine
  end
--^

I suppose we could rephrase that as "Program may contain only one main program"

 

0 Kudos
Reply