when I try to instantiate an Image with a filename. Here's the trivial code snippet that generates this error:undefined reference to `Magick::Image::Image(std::string const&)'
Code: Select all
#include "Magick++.h"
main()
{
Magick::Image im("test.jpg");
}
I get similar errors when I try to use Image::write(std::string const&). But everything else works just fine; it's just these two commands for writing and reading files from std::string that are giving me issues. I'd be grateful for any insights that people might have into my predicament. This all ran just fine with g++ 4.2.1 on FreeBSD 9.1 . . .g++ -o ~/bin/IMissue IMissue.c++ `Magick++-config --cppflags --libs`
- Jason W. Barnes