Currently, I am trying to run a simple Magick++ program that opens an image file as per a tutorial's instructions:
Code: Select all
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc, char **argv)
{
InitializeMagick(*argv);
Image image("chitanda.jpg");
return 0;
}
However, upon trying to execute it I receive the following error:
Code: Select all
Caught Magick++ exception: testMagick: must specify image size `/test.bmp' @ error/raw.c/ReadRAWImage/136
I figured that this meant that I needed to specify the size of the image I am reading. I have tried that, and still got an error, then I decided to make an odd attempt, what if I tried to execute a useless program such as:
Code: Select all
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{
return 0;
}
Oddly enough, I get the same exact error message. What could be the cause? I have only recently began dabbling in C++, and I am even newer to Magick++. I've trawled the internet for an answer, but haven't found anything. I hope that someone here has an idea!