Package: libmagick++9-dev
Version: 6.2.4.5-0.3

I am trying to compile example program mentioned on http://www.imagemagick.org/Magick++/Image.html (attached as well) and get strange errors during link:
[~]$ g++ Example.cc
/tmp/ccaDGf9F.o: In function `main':
Example.cc:(.text+0x50): undefined reference to `Magick::Image::Image(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' Example.cc:(.text+0x9d): undefined reference to `Magick::Image::Image(Magick::Image const&)' Example.cc:(.text+0xd6): undefined reference to `Magick::Geometry::Geometry(char const*)' Example.cc:(.text+0xe9): undefined reference to `Magick::Image::zoom(Magick::Geometry const&)'
...

May be it is related to the fact that binary package is named as libmagick++9c2a ?

--
---
Bye,  | Phone: (972)-2-5324971
Arieh | AIM: skliarieh


#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;

int main(int argc,char **argv)
{
        Image master("horse.jpg");
        Image second = master;
        second.zoom("640x480");
        Image third = master;
        third.zoom("800x600");
        second.write("horse640x480.jpg");
        third.write("horse800x600.jpg");
        return 0;
}

Reply via email to