Page 1 of 1

Visual studio 2008 linker problems

Posted: 2009-03-06T20:10:59-07:00
by Task_
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.

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
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?

Re: Visual studio 2008 linker problems

Posted: 2009-03-07T01:11:19-07:00
by Task_
ok I made progress after manually adding in library dependencies.

I am getting prompted for x11.dll so I probably need to reconfigure and take that out of the ImageMagick build selections in the configure program. I think I remember seeing that it wasn't essential.