error LNK2019: unresolved external symbol ConstituteImage

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jxbp
Posts: 5
Joined: 2012-01-07T19:03:42-07:00
Authentication code: 8675308

error LNK2019: unresolved external symbol ConstituteImage

Post by jxbp »

Hi everyone,

I am just starting to work with ImageMagick, in c++ on Visual Studio 2010. However I keep encountering this error whenever I try to use ConstituteImage:

error LNK2019: unresolved external symbol _imp_ConstituteImage referenced in function _main

I am trying to write a png image, so was hoping to use ConstituteImage to first create an image. I have made sure that both constitute.h and constitute.c is the library, and I have also linked my project to the ImageMagick directory and also the one that holds constitute.c:

../ImageMagick-6.4.9
../ImageMagick-6.4.9/magick

Does anyone know what might be causing this error?

Thanks,
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: error LNK2019: unresolved external symbol ConstituteImag

Post by el_supremo »

The usual (and best) advice in this situation is that you first open the button demo project and make sure it compiles and runs as-is.
Then you can modify that code.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
jxbp
Posts: 5
Joined: 2012-01-07T19:03:42-07:00
Authentication code: 8675308

Re: error LNK2019: unresolved external symbol ConstituteImag

Post by jxbp »

I tried compiling the button demo, and it doesn't work either. Getting a bunch of LNK2019 errors similar to what I had before with ConstituteImage. This is the first time I have worked with C source so I don't really have a sense of what might be causing this. The function definitions all seem to be in the right place.

I found a previous post that had encountered similar errors:
viewtopic.php?f=1&t=17431

But I am still not sure what the solution.
Post Reply