Cygwin issue with Magick++

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
WaterIsPoison

Cygwin issue with Magick++

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Cygwin issue with Magick++

Post 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++
Post Reply