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

Unresolved externals going from Debug to Release

DavidWhite
Valued Contributor II
709 Views

I have a functional DLL, which compiles and runs perfectly under Debug. I now want to release it and need to rebuild it using Release mode (so that I can distribute the run time libraries). I now get many unresolved external references ...

AqueousProps.obj : error LNK2001: unresolved external symbol __fltused

GasProps.obj : error LNK2019: unresolved external symbol __alloca_probe referenced in function _SETCRITDATA

GasProps.obj : error LNK2019: unresolved external symbol _memmove referenced in function _SETCRITDATA

LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12

realwin.lib(winbase.obj) : error LNK2019: unresolved external symbol _strlen referenced in function _REGISTER_CLASS

Any ideas? Thanks.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
709 Views
This can happen when you have done things such as add libraries to the Debug configuration properties but neglected to also add them to the Release configuration. Compar your two configurations and see what is different regarding libraries - both under the compiler options and the linker.
0 Kudos
Reply