openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Compiling with gcc4.0.1 - compilation error and fix


From: Florian Kainz
Subject: Re: [Openexr-devel] Compiling with gcc4.0.1 - compilation error and fix
Date: Mon, 18 Jul 2005 09:13:09 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114

Thank you for pointing this out.  I think this is a bug in
gcc 4.0.1; you should probably report it to the gcc maintainers.

Florian


Jeff Clifford wrote:
Hi,

I have just tried compiling the openEXR lib and tools using gcc4.0.1. Whereas gcc4.0.0 gives no errors I got the following one with gcc4.0.1:

../OpenEXR-1.2.2/exrmaketiled/Image.h:59: error: expected `)' before ‘&’ token
... other errors ...
gmake[1]: *** [Image.o] Error 1

It seems gcc 4.0.1 is a bit more pedantic in its checking than gcc 4.0.0:

If anyone else gets this error it can be fixed by adding a class forward declaration in OpenEXR-1.2.2/exrmaketiled/Image.h

....

#include <map>

class Image; <--------------- ********* Add this line ***********

class ImageChannel
{
public:

friend class Image;

ImageChannel (Image &Image);
virtual ~ImageChannel();

virtual Imf::Slice slice () const = 0;

Image & image () {return _image;}
const Image & image () const {return _image;}

private:

virtual void resize (int width, int height) = 0;

Image & _image;
};

....




Jeff Clifford.

Double Negative.


_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel








reply via email to

[Prev in Thread] Current Thread [Next in Thread]