Page 1 of 1

Cygwin issue with Magick++

Posted: 2009-02-06T14:16:23-07:00
by WaterIsPoison
Hey guys, I'm trying to get a simple program to compile, however I seem to be running into some issues as you can see below. I installed ImageMagick recently through the cygwin gui setup.

$ g++ -o imageTest imageTest.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`
g++: unrecognized option `-no-undefined'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ldpstk
collect2: ld returned 1 exit status

Re: Cygwin issue with Magick++

Posted: 2009-02-06T15:13:41-07:00
by magick
Did you install the libMagick development library? We just tried this command and it compiled and ran undef Cygwin without complaint:
  • g++ `Magick++-config --cxxflags --cppflags` -o magick++ magick++.cpp `Magick++-config --ldflags --libs`
    ./magick++