hi,
I am new to linux.I wanted to use Imagemagick(that was installed while installing suse linux) in my c++ code.I am using anjuta IDE.The imagemagick commands are working at the command prompt. But when i try to write a small program and run it,
the Magick class is not recognized.
sample program:
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{

// Construct the image object. Seperating image construction from the
// the read operation ensures that a failure to read the image file
// doesn't render the image object useless.

Image image;
try {
// Read a file into image object
image.read( "girl.gif" );
// Crop the image to specified size (width, height, xOffset, yOffset)
image.crop( Geometry(100,100, 100, 100) );
// Write the image to a file
image.write( "x.gif" );
}
catch( Exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
return 1;
}
return 0;

}
when i try to build its giving an error as
undefined reference to Magick::Image::image()
i tried to set the compiler and linker properties,but nothing worked
plz can any one help me with this
regards
vadapalli