Re: Have problem to compile with g++ 4.0.2

Florian Kainz <[email protected]> Mon, 17 Oct 2005 11:53:54 -0700
Newsgroups gmane.comp.video.openexr.user
Message-ID <[email protected]>
Someone else reported this error a while ago, and a fix
has been checked into CVS.  You can either get the latest
version of exrmaketiled/Image.h from the CVS repository,
or you can fix the file yourself:

immediately before the line that reads

	class ImageChannel

insert a new line:

	class Image;

Also change the line that reads

	ImageChannel (Image &Image);

to
	
	ImageChannel (Image &image);

	
shtabco wrote:
> Here is the place with error. I am not good at C++ to
> fix it.
> 
> Please help.
> 
> ./Image.h:59: error: expected `)' before ‘&’ token
> ./Image.h:64: warning: ISO C++ forbids declaration of
> ‘Image’ with no type
> ./Image.h:64: error: expected ‘;’ before ‘&’ token
> ./Image.h:65: error: expected `;' before ‘const’
> ./Image.h:65: warning: ISO C++ forbids declaration of
> ‘Image’ with no type
> ./Image.h:65: error: expected ‘;’ before ‘&’ token
> ./Image.h:67: error: expected `;' before ‘private’
> ./Image.h:71: warning: ISO C++ forbids declaration of
> ‘Image’ with no type
> ./Image.h:71: error: expected ‘;’ before ‘&’ token
> ./Image.h:80: error: expected `)' before ‘&’ token
> 
> 
> 
> 		
> __________________________________ 
> Yahoo! Music Unlimited 
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
> 
> 
> _______________________________________________
> Openexr-user mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/openexr-user
>