Unresolved externals when using static libraries

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Peter Langer

Unresolved externals when using static libraries

Post by Peter Langer »

Hello,
i am building an windows application with ImageMagick++ VisualDynamicMT - DLL's and everything is fine. As i do not want to deliver the DLL's i have tried to use (link) the VisualStaticMT and VisualStaticMTDLL.
But with both static versions the linker reports the Magick++ functions as unresolved externals.
e.g:
myapp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z)

My application is compiled as 'Use MFC as shared DLL', with Visual Studio 6.

Any help would be appreciated.
Peter.
Post Reply