Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
8 Views

DLL error LNK1561: Entry point mus be defined

Hello there,

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?

 

 

0 Kudos
4 Replies
Highlighted
Black Belt
8 Views

I would guess that you

I would guess that you created an executable project type rather than a DLL project type. Start over and make sure the project type is DLL.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
8 Views

Thanks Steve, it works know

Thanks Steve, it works now

Luis

0 Kudos
Highlighted
Beginner
8 Views

Hi 

Hi 

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.

Thanks

 

 

0 Kudos
Highlighted
Black Belt
8 Views

If you get that error, you

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.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos