私のプログラムには、GraphicsMagick の最新の更新までうまく機能するこの単純なコードがありました。
{
unsigned char *bitmap = new unsigned char[width*height*3];
/* code that fills bitmap with the width, height, and depth specifed *\
Image image(width,height,"BGR",CharPixel,bitmap); \\CODE SEGFAULTS HERE AT CONSTRUCTOR!
image.write(file);
delete[] bitmap;
}
Image コンストラクターを使用すると、segfault が発生するようです。どうやら、Magick++ の最新バージョンで Image オブジェクトを宣言できませんか?