Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Two line program wont link ?

WSinc
새로운 기여자 I
543 조회수

program test

end

 

It says "LINK error 1561"

No entry point defined.

Why would a main program have an entry point ?

 

what a god-awful mess - - - 

0 포인트
2 응답
mecej4
명예로운 기여자 III
543 조회수

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

0 포인트
Steven_L_Intel1
543 조회수

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.

0 포인트
응답