compilation error
Posted: 2007-08-28T02:22:23-07:00
Hi Friends,
I am facing a problem in compiling and executing a c program which uses ImageMagick.h header file. It compiled without any error, but while executing the code i get the following error message..
To give complete information, the program is written just to check the utility of ImageMagick..
Did anybody face this problem before??
I am facing a problem in compiling and executing a c program which uses ImageMagick.h header file. It compiled without any error, but while executing the code i get the following error message..
Code: Select all
example1: coders/jpeg.c:679: ReadJPEGImage: Assertion `exception->signature == 0xabacadabUL' failed.
Aborted
Code: Select all
Image *image;
ImageInfo image_info;
ExceptionInfo *exception;
/*
Initialize the image info structure and read an image.
*/
GetImageInfo(&image_info);
(void) strcpy(image_info.filename,"image.jpg");
image=ReadImage(&image_info,exception);
if (image == (Image *) NULL)
exit(1);