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'
Welcome to our forums
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'
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.
Paul. Thank you. That was it.
R/ Bill