Silverfrost Forums

Welcome to our forums

LINK : error : Main program not permitted in DLL

16 Feb 2013 4:10 #11567

I am compiling a FORTRAN program in Visual Studio 2005 with several functions, subroutines, and includes. After rebuilding the FORTRAN program in Visual Studio it is throwing the following error:

'LINK : error : Main program not permitted in DLL'

16 Feb 2013 8:56 #11568

Perhaps you have a main program in your code. That is not allowed when creating a DLL.

Often main programs begin with PROGRAM but not always. So if your code does not contain PROGRAM, look for a fragment of code that is being treated as a main program.

16 Feb 2013 6:54 #11569

Paul. Thank you. That was it.

R/ Bill

Please login to reply.