What is your OS, compiler, compiler version? It looks like your program is not handling exceptions properly. It should report:
terminate called after throwing an instance of 'Magick::WarningOption'
what(): Magick: Image does not contain a geometry
Abort
Fix by specifying a geometry before you call image.geometry(). For examples, grab the ImageMagick source distribution and look in the ImageMagick-6.7.3-6/Magick++/demo or test folders.