Recently i am learning Magick++.h, i installed the ImageMagick-6.7.3-7-Q16-windows-dll on my window7, and i use VS2010 professional edition.
Here is the problem:
i write a simple program for testing, the code is as follows:
Code: Select all
#include <Magick++.h>
using namespace std;
using namespace Magick;
int main()
{
Image image( "E:/DataMining/dataset_2img/300.jpg");
return 0;
}
It compiles good, but everytime i debug the program it gives a "Access violation reading location..."problem, where i does wrong? Is the image file path format wrong? Is it "E:\\DataMining\\dataset_2img\\300.jpg"? Please tell me, any advice would be a great help for me.
PS:VS2010 builds the Magick++_Demo very well.