0

I use ImageMagick Magick++ in my C++ program. I include it with

#include <Magick++.h>

I used it a lot and it worked well, but now I need to access some functions of the libjpeg library directly. How can I do this?

Magick++ already uses and somehow included libjpeg, but I can´t access the functions of it. I don´t want to include the whole library twice...

1 Answer 1

0
#include <jpeglib.h>

See here for some documentation. However, it might be more convenient to use the Boost/Adobe GIL.

1
  • I tryed this, but then there is the following error message: Error 1 error C1189: #error : Something is very very wrong. This header must only be used under Visual C++. c:\imagemagick\jpeg\jmorecfg.h
    – Van Coding
    Jan 27, 2011 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.