Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help to run the code

Status
Not open for further replies.

thanhquang2392

Programmer
Apr 24, 2016
3
US
Hi everybody,

I am very new to Fortran, I have just studied it because my teacher ask me to run and modify the code written for his work a long time ago.

Firstly, I use Codeblocks to run the code (his original one) however, it keeps telling me the bellow error.

*** No main, WinMain or LibMain function
*** Compilation abandoned
Compilation failed.

I would really appreciate it if someone can help me to solve this issue.
 
Can you show us the code and tell us what you have called your file and which compiler you are using (eg xxx.f, xxx,fortran whatever). Codeblocks is just an IDE - it does not tell us which compiler it uses.
 
Hi, I change to run it using Silverfrost FTN95.

I call my file as radio.for. When I compile it (Ctrl+f7) it shows that "Compilation completed without errors"
However when I want to run it (Ctrl+F5) it shows "*** No main, WinMain or LibMain function*** Compilation abandoned
Compilation failed."

Here are the two pictures
ok_ubh9fz.png

error_mmvpox.png
 
You have just defined some subroutines. There is no program. You need a program module to call these subroutines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top