Problem compiling Magick++ based app, altimage.h
Posted: 2011-07-15T11:36:59-07:00
Hi,
I have an existing project using Magick++, which I have rebuilt for various prior releases of ImageMagick. But on trying to rebuild it for 6.7.1, on VC 2005, I am able to build the 6.7.1 source for shared library ( x86, multi-threaded, 32-bit ) and the build seems successful. On pointing my project at the new 6.71 headers and libraries, cleaning the project, I get build errors which point at Microsoft's altimage.h
The code in Microsoft's altimage.h referenced is:
Any idea what this is? I have not back tracked version-wise to see when this started, but I was previously on 6.5.2 and this problem does not occur.
Thanks!
-- Bob
I have an existing project using Magick++, which I have rebuilt for various prior releases of ImageMagick. But on trying to rebuild it for 6.7.1, on VC 2005, I am able to build the 6.7.1 source for shared library ( x86, multi-threaded, 32-bit ) and the build seems successful. On pointing my project at the new 6.71 headers and libraries, cleaning the project, I get build errors which point at Microsoft's altimage.h
This occurs for any of my sources where I include Magick++C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(207) : warning C4002: too many actual parameters for macro 'SetPixelRGB'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(207) : error C2059: syntax error : '{'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(207) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(207) : error C2059: syntax error : 'throw'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(207) : error C2238: unexpected token(s) preceding ';'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : warning C4002: too many actual parameters for macro 'SetPixelRGB'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : error C2589: '{' : illegal token on right side of '::'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : warning C4091: 'inline ' : ignored on left of 'void' when no variable is declared
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : error C2143: syntax error : missing ';' before '::'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : error C2059: syntax error : '::'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : error C2143: syntax error : missing ';' before '{'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : error C2447: '{' : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1424) : error C2059: syntax error : 'throw'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1425) : error C2143: syntax error : missing ';' before '{'
C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(1425) : error C2447: '{' : missing function header (old-style formal list?)
The code in Microsoft's altimage.h referenced is:
Code: Select all
void SetPixelRGB( int x, int y, BYTE r, BYTE g, BYTE b ) throw();
Code: Select all
inline void CImage::SetPixelRGB( int x, int y, BYTE r, BYTE g, BYTE b ) throw()
{
SetPixel( x, y, RGB( r, g, b ) );
}
Thanks!
-- Bob