image magic compilation errorrs

Claudio Bley
Wed Oct 23 07:46:00 GMT 2002

>>>>> "Sawa" == Sawa  <> writes:

    Sawa> bash-2.05b$ c++ -o test test.cpp `Magick++-config -cxxflags
    Sawa> -cppflags -ldflags -libs` Usage: Magick++-config
    Sawa> [--cppflags] [--cxxflags] [--exec-prefix] [--ldflags]
    Sawa> [--libs] [--prefix] [--version]

    Sawa>  For example, "example.cpp" may be compiled to produce
    Sawa> "example" as follows:

    Sawa>   "c++ -o example example.cpp `Magick++-config --cppflags
    Sawa> --cxxflags --ldflags --libs`" 

Why don't you just follow the advice given in the line above???

There need to be 2 dashes in front of cppflags, cxxflags, libs and
ldflags options to the Magick++-config script.

bash-2.05b $ Magick++-config --cppflags --cxxflags --ldflags --libs
-DHAVE_CONFIG_H -I/usr/include/freetype2 -I/usr/include/freetype2 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include/X11/magick -I/usr/X11R6/include -I/usr/X11R6/include/X11
-O2 -march=i686
-L/usr/lib -L/usr/X11R6/lib -L/usr/X11R6/lib
-lMagick++ -lMagick -L/usr/X11R6/lib -lMagick -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lpthread -lm

Claudio Bley                                 ASCII ribbon campaign (")
Debian GNU/Linux advocate                     - against HTML email  X                     & vCards / \

More information about the Gcc-help mailing list