errors in image.c when compiling ImageMagick 6.5.6-9

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Wilbert

errors in image.c when compiling ImageMagick 6.5.6-9

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Add this to Include.h:
  • using MagickCore:SpliceImage;
Wilbert

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

Post by Wilbert »

That solved it. Thank you very much!
Post Reply