Page 1 of 1

error LNK2019: unresolved external symbol ConstituteImage

Posted: 2012-01-08T12:10:24-07:00
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,

Re: error LNK2019: unresolved external symbol ConstituteImag

Posted: 2012-01-08T12:33:16-07:00
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

Re: error LNK2019: unresolved external symbol ConstituteImag

Posted: 2012-01-08T13:38:31-07:00
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.