- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've written one programme, but there is always a message:"Compilation aborted code 1". What does it mean?
pls help me. I'm new in fortran.
attachment is the programme.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That isn't the important message - it simply means you had compile-time errors. The important message preceded that - it says:
source1.f90(103): error #6353: A RETURN statement is invalid in the main program.
RETURN
-----^
As the message says, a RETURN is not valid in a main program. Just remove the RETURN statement. You are also missing a declaration (and any setting the value) of array DYY.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Steve. I delected the "RETURN" statement, then there is no error here. but I cannot see any result on screen. There is a black window showing on my screen let me fill in DT,ERR. After filling in the numbers, the black window was gone. how can I see the results? thank you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am guessing that you ran the program by clicking on the Start button in Visual Studio. This runs the program under the debugger, but if you did not set any breakpoints the program runs to completion and then the console window disappears. Instead, select Debug > Start without debugging or press CTRL-F5. In this mode, the console window will remain visible until you press a key to close it (you will see a message saying so.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah! I did what you said, and it works well. Thank you very much! Have a good day!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page