Page 1 of 1

errors in image.c when compiling ImageMagick 6.5.6-9

Posted: 2009-10-07T11:19:03-07:00
by Wilbert
I get two errors in image.c when compiling ImageMagick 6.5.6-9 under W2K/VB6:

Code: Select all

Magick++ lib DLL export
F:\CompilingPlugins\ImageMagick-6.5.6\Magick++\lib\Image.cpp(3524) : error C2065: 'SpliceImage' : undeclared identifier
F:\CompilingPlugins\ImageMagick-6.5.6\Magick++\lib\Image.cpp(3524) : error C2440: 'initializing' : cannot convert from 'int' to 'struct MagickCore::_Image *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
...
Magick++ lib DLL export
Error executing cl.exe.

All - 2 error(s), 79 warning(s)
It's the first time it fails though. Compiling 6.5.5-10 went fine.

Re: errors in image.c when compiling ImageMagick 6.5.6-9

Posted: 2009-10-07T11:34:31-07:00
by magick
Add this to Include.h:
  • using MagickCore:SpliceImage;

Re: errors in image.c when compiling ImageMagick 6.5.6-9

Posted: 2009-10-08T12:29:39-07:00
by Wilbert
That solved it. Thank you very much!