Page 1 of 1

Unresolved externals when using static libraries

Posted: 2007-12-12T02:24:06-07:00
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.