trying to compile with gcc in unix, having problems

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
jfern

trying to compile with gcc in unix, having problems

Post by jfern »

Hi,

I am trying to compile a program that I know works, in unix using gcc compiler. after reading a lot, it seems that I have to use the Magick++-config -- commands. I tried this:

g++ -o im images.cpp 'Magick++-config --cppflags --cxxflags --ldflags --libs' -lGL -lglut

also tried it with c++ instead of g++

but got the error that Magick++-config --cppflags --cxxflags --ldflags --libs does not exist.
I can just run these commands seperately not inside the compile command and they do exist.

Is there a different way I should be compiling?

please help!!

Thanks
Josh
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: trying to compile with gcc in unix, having problems

Post by anthony »

Try posting in the MagicWand Forum.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply