Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Two line program wont link ?

New Contributor I

program test



It says "LINK error 1561"

No entry point defined.

Why would a main program have an entry point ?


what a god-awful mess - - - 

0 Kudos
2 Replies
Black Belt

You probably did not save the two lines to a Fortran source file or add the file to the current project. Such questions as you ask can usually be answered only if you provide sufficient information -- for example, a build-log, a transcript of the steps or commands used, etc. In short, we have no idea of what you did until you tell us.

"Entry point" is the linker's term for what is often called Start Address, i.e., the place in the entire EXE where execution starts. From the linker's point of view, subroutine, common blocks, module procedures, functions are all "symbols". "No entry point" usually implies that you are trying to build an EXE from one or more source files that contain subroutines and functions, with none of them containing a main program. "Entry point" should not be confused with Fortran's ENTRY (which should probably not be used in new code).


Did you actually compile this? Or did you try to link a source file? Show us the command you used. I agree with mecej4 that you rarely provide enough detail to help you.