View previous topic :: View next topic |
Author |
Message |
BillJohnson
Joined: 31 Aug 2011 Posts: 30 Location: Connecticut
|
Posted: Sat Feb 16, 2013 5:10 am Post subject: LINK : error : Main program not permitted in DLL |
|
|
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" |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Sat Feb 16, 2013 9:56 am Post subject: |
|
|
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. |
|
Back to top |
|
|
BillJohnson
Joined: 31 Aug 2011 Posts: 30 Location: Connecticut
|
Posted: Sat Feb 16, 2013 7:54 pm Post subject: |
|
|
Paul. Thank you. That was it.
R/ Bill |
|
Back to top |
|
|
|