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

LINK fatal error LNK1561: entry point must be defined

feleke
Beginner
3,672 Views

I am using Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* .NET 2003, 11.1.3471.2003, Copyright (C) 2002-2010 Intel Corporation. to compile a fortran 77 program that include additional external libraries.
I am getting the message 'entry point must be defined.

My project include the source files ( *.f) and other resources files ( *.int).

Can any one help to solve this problem,

thanks,
fele

0 Kudos
4 Replies
mecej4
Honored Contributor III
3,672 Views
You are trying to link a number of .OBJ files none of which contains the main program. Every Fortran program must have one subprogram called "PROGRAM " (or a nameless subprogram).

You cannot link a number of subroutines and functions together to build an executable program in the absence of the main program.
0 Kudos
feleke
Beginner
3,672 Views
I d have a main program that controls how the differet subroutines are called.
0 Kudos
feleke
Beginner
3,672 Views

My source codes are in c:\codes directory. I have main program that begins with Program x----then end with end program x.
I have externally built libraries and they are in the same directory (c:\codes). So do interface subroutines (*.int) are under c:\codes.
My project console is under c:\codes\consol1
under linker>general> additional library directories> I put c:\codes
Under linker >input>additional dependency> I put abc.lib; def.lib

It seems to the problem is with syntax. I am first time user of this compiler. I appreciate if you comment on this.


0 Kudos
anthonyrichards
New Contributor III
3,672 Views
Make sure that you have added all the required source and include files to our Main program project .
Then add your library files .LIB also then compile and link and see what happens.
That should work.
0 Kudos
Reply