Compiling error!

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
stanleyweike

Compiling error!

Post by stanleyweike »

Hi,
I was programming with magickcore. And when compiling, I came across the following message:

imgfilter.cpp: In function `int main(int, char **)':
imgfilter.cpp:32: implicit declaration of function `int AcquireExceptionInfo(...)'
imgfilter.cpp:32: assignment to `ExceptionInfo *' from `int' lacks a cast
imgfilter.cpp:50: implicit declaration of function `int AcquireQuantizeInfo(...)'
imgfilter.cpp:50: assignment to `QuantizeInfo *' from `int' lacks a cast
imgfilter.cpp:70: void value not ignored as it ought to be
imgfilter.cpp:15: warning: unused variable `struct Image * qimage'

and my compiling command line is :

cc `Magick-config --cflags --cppflags` imgfilter.cpp `Magick-config --ldflags --libs` -I/homes/xxx/download/ImageMagick-6.3.0/include

and it seems some library is not included, is there anyone who used to have similar problem?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Did you include the MagickCore API header in your source module? You need
  • #include <magick/MagickCore.h>
stanleyweike

Post by stanleyweike »

definitely, I included this header file.
Post Reply