I have a Fortran code that is going to be used as a User-defined DLL subroutine in another executable. I'm using the following set up in the configuration manager:
SuppressStartupBanner="true" (’General’ Section)
ReentrantCode="reentrancyThreaded" (’Code Generation’ Section)
SourceFileFormat= Use Free Format
RealKIND="realKIND8" (’Data’ Section)
LocalVariableStorage="localStorageAutomatic" (’Data’ Section)
FloatingPointModel="strict" (’Floating Point’ Section)
ExtendSinglePrecisionConstants="true" (’Floating Point’ Section)
UseMkl="mklParallel" (’Libraries’ Section)
When I compile the code I'm obtaining the following error output:
LINK: fatal error LNK1561: entry point must be defined
I'm following a manual to develop this dll for the user-defined subroutine, I'm my configuration differs from the manual because I have selected "Use Free Format" instead of fixed format with 132 characters length.
Does anyone have any idea of how to get rid of this error?
I have the same problem with Luis and we may both use the Anura3D.
I tried Steve's method ,but it does not work ,my configuration type has already been the Dynamic-link Library.
I still get the error output
LINK:fatal error LNK1561: entry point must be defined
Would be great to get response on how to fix it.
If you get that error, you have the wrong project type, even if you think otherwise. Start over - create a new DLL project and add your sources to it.