i want to include imagemagick's magick++ library in my project
but after including the header files
i am getting the error when i just declare an Image object
Image image;
simple.cpp:(.text+0x14c): undefined reference to `Magick::Image::Image()'
simple.cpp:(.text+0x268): undefined reference to `Magick::Image::~Image()'
thnks
unable to get magick++ work
Re: unable to get magick++ work
Windows or Linux? Under Linux did you compile your source like this?
- c++ `Magick++-config --cxxflags --cppflags` -O2 -o simple simple.cpp \
`Magick++-config --ldflags --libs`
Re: unable to get magick++ work
linux .. i have to use this library for webos painting app development ...
do i need to install imagemagick.exe on webos mobile also ? if so ,how will i install imagemagick it on the mobile device ... plam webos has linux os..
and when i am using this commad
set SRC=plugin\simple.cpp
set OUTFILE=simple
arm-none-linux-gnueabi-gcc `Magick++-config --cxxflags --cppflags` %DEVICEOPTS% -o %OUTFILE% %SRC% "-I%PALMPDK%\include" "-I%PALMPDK%\include\SDL" "-L%PALMPDK%\device\lib" `Magick++-config --ldflags --libs` -Wl,--allow-shlib-undefined %LIBS%
it says
arm-none-linux-gnueabi-gcc: `Magick++-config: No such file or directory
arm-none-linux-gnueabi-gcc: `Magick++-config: No such file or directory
cc1plus.exe: error: unrecognized command line option "-fcxxflags"
cc1plus.exe: error: unrecognized command line option "-fcppflags`"
cc1plus.exe: error: unrecognized command line option "-fldflags"
cc1plus.exe: error: unrecognized command line option "-flibs`"
do i need to install imagemagick.exe on webos mobile also ? if so ,how will i install imagemagick it on the mobile device ... plam webos has linux os..
and when i am using this commad
set SRC=plugin\simple.cpp
set OUTFILE=simple
arm-none-linux-gnueabi-gcc `Magick++-config --cxxflags --cppflags` %DEVICEOPTS% -o %OUTFILE% %SRC% "-I%PALMPDK%\include" "-I%PALMPDK%\include\SDL" "-L%PALMPDK%\device\lib" `Magick++-config --ldflags --libs` -Wl,--allow-shlib-undefined %LIBS%
it says
arm-none-linux-gnueabi-gcc: `Magick++-config: No such file or directory
arm-none-linux-gnueabi-gcc: `Magick++-config: No such file or directory
cc1plus.exe: error: unrecognized command line option "-fcxxflags"
cc1plus.exe: error: unrecognized command line option "-fcppflags`"
cc1plus.exe: error: unrecognized command line option "-fldflags"
cc1plus.exe: error: unrecognized command line option "-flibs`"