Page 1 of 1

Re: Problem with imageMagic on Windows

Posted: 2009-03-25T04:22:52-07:00
by nattydread
I have the same problem using Magick++ on code::blocks IDE and gcc,
I have all the libraries configured correctly in the IDE (the DLLs)

for the tutorial

#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{
Image master("horse.jpg");
}

I get:
undefined reference to `Magick::Image::Image(std::string const&)'


If I add the line

InitializeMagick(*argv);
I get
undefined reference to `Magick::InitializeMagick(char const*)'

so this isn't the problem either.
The c version works fine, the only problems are with Magick++.

Please help!