Visual studio 2008 linker problems

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
Task_

Visual studio 2008 linker problems

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

Re: Visual studio 2008 linker problems

Post 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.
Post Reply