Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26748 Discussions

DLL error LNK1561: Entry point mus be defined

Zambrano-Cruzatty__L
412 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
Black Belt Retired Employee
412 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.

Zambrano-Cruzatty__L
412 Views

Thanks Steve, it works now

Luis

WenLong__Li
Beginner
412 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

 

 

Steve_Lionel
Black Belt Retired Employee
412 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.

Reply