Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28819 Discussions

DLL error LNK1561: Entry point mus be defined

Zambrano-Cruzatty__L
2,468 Views

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
Steve_Lionel
Honored Contributor III
2,468 Views

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.

0 Kudos
Zambrano-Cruzatty__L
2,468 Views

Thanks Steve, it works now

Luis

0 Kudos
WenLong__Li
Beginner
2,468 Views

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
Steve_Lionel
Honored Contributor III
2,468 Views

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.

0 Kudos
Reply