Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
2 Views

Another bad compile message

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
Highlighted
2 Views

The problem is that there are

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
Highlighted
New Contributor I
2 Views

Thanks for spotting that -

Thanks for spotting that -

Although I feel it could have been more direct.

 

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

0 Kudos
Highlighted
2 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