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,
error LNK2019: unresolved external symbol ConstituteImage
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: error LNK2019: unresolved external symbol ConstituteImag
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
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.
See my message in this topic for a link to a zip of all the files.
Re: error LNK2019: unresolved external symbol ConstituteImag
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.
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.