50 link errors trying to use static lib in vs2008
Posted: 2010-06-06T10:28:02-07:00
Hello,
i am trying desperatly to have my vs2008 x64 project to use image magick static DLL...
through configure in x64 mode and all I have built a set of static .lib that are in my ViusalMagick/Lib without problem
now i have added them to the configuration linker input additional dependencies of visual studio, the option directories point to those
also the precompiler has everything set like in the magick exemple...
when i do link, i got 50 errors all related to ImageMagick, like the vs project is not seeing the libraries... i have spent 1 full day trying to figure out and redoing all the steps again, without success...
i am missing something i am not sure what, an exemple showing a vs project with static dll would be good, could not find any (only dynamic ), all hints would be more than welcome
Thanks
NOTE i have been able to have the same project running with dynamic DLL, but i need to deploy my project so i need static dll
i am trying desperatly to have my vs2008 x64 project to use image magick static DLL...
through configure in x64 mode and all I have built a set of static .lib that are in my ViusalMagick/Lib without problem
now i have added them to the configuration linker input additional dependencies of visual studio, the option directories point to those
also the precompiler has everything set like in the magick exemple...
when i do link, i got 50 errors all related to ImageMagick, like the vs project is not seeing the libraries... i have spent 1 full day trying to figure out and redoing all the steps again, without success...
i am missing something i am not sure what, an exemple showing a vs project with static dll would be good, could not find any (only dynamic ), all hints would be more than welcome
Thanks
NOTE i have been able to have the same project running with dynamic DLL, but i need to deploy my project so i need static dll
Code: Select all
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPEBD@Z) referenced in function "short __cdecl initHSCEdit(int,char * * const)" (?initHSCEdit@@YAFHQEAPEAD@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Magick::Image::compressType(enum MagickCore::CompressionType)" (__imp_?compressType@Image@Magick@@QEAAXW4CompressionType@MagickCore@@@Z) referenced in function "int __cdecl testMagick(char * *)" (?testMagick@@YAHPEAPEAD@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Magick::Image::quantize(bool)" (__imp_?quantize@Image@Magick@@QEAAX_N@Z) referenced in function "int __cdecl testMagick(char * *)" (?testMagick@@YAHPEAPEAD@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Magick::Image::quantizeColors(unsigned __int64)" (__imp_?quantizeColors@Image@Magick@@QEAAX_K@Z) referenced in function "int __cdecl testMagick(char * *)" (?testMagick@@YAHPEAPEAD@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Magick::Image::quantizeDither(bool)" (__imp_?quantizeDither@Image@Magick@@QEAAX_N@Z) referenced in function "int __cdecl testMagick(char * *)" (?testMagick@@YAHPEAPEAD@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Magick::Image::frame(class Magick::Geometry const &)" (__imp_?frame@Image@Magick@@QEAAXAEBVGeometry@2@@Z) referenced in function "int __cdecl testMagick(char * *)" (?testMagick@@YAHPEAPEAD@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Magick::Geometry::Geometry(char const *)" (__imp_??0Geometry@Magick@@QEAA@PEBD@Z) referenced in function "int __cdecl testMagick(char * *)" (?testMagick@@YAHPEAPEAD@Z)