Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

compilation aborted code 1

Baosheng_B_
Beginner
1,539 Views

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.

0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,539 Views

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.

0 Kudos
Baosheng_B_
Beginner
1,539 Views

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.

0 Kudos
Steven_L_Intel1
Employee
1,539 Views

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.)

0 Kudos
Baosheng_B_
Beginner
1,539 Views

Yeah! I did what you said, and it works well. Thank you very much! Have a good day!

0 Kudos
Reply