Visual studio 2008 linker problems
Posted: 2009-03-06T20:10:59-07:00
I have played around with this a lot and can't get it to work. I have created a static build of ImageMagick. When I create a test application I get linker errors. I do have the libary name and paths correct. I have seen previous posts referred to a download with a sample (the link page on imagemagick.org does not exist). I even downloaded the static prebuilt windows but it doesn't have any .lib files. I prefer to build my own but at this point I would take a header and lib setup. Interestingly if I clean for example UTIL_display I also get LNK 2019 errors.
I have my project set as multi thread debug dll and also ImageMagick (I thought at one point that might have been the problem).
Any ideas?
Code: Select all
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z) referenced in function "protected: virtual int __thiscall CMagickdemoDlg::OnInitDialog(void)" (?OnInitDialog@CMagickdemoDlg@@MAEHXZ) Magick demoDlg.obj
Error 2 fatal error LNK1120: 1 unresolved externals C:\Files\VC++\Magick demo\Magick demo\Debug\Magick demo.exe
Any ideas?