bugOpenEXR - Bugs: bug #15190, Compile Error

 
 

bug #15190: Compile Error

Submitted by:  None
Submitted on:  Sun 11 Dec 2005 10:05:32 PM UTC  
 
Category: build/installSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Florian Kainz <fkainz>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 31 Mar 2006 10:38:30 PM UTC, comment #2:

Fix was checked into CVS a while ago (the problem was first
reported on the openexr-devel mailing list).

Florian Kainz <fkainz>
Project MemberIn charge of this item.
Mon 23 Jan 2006 05:35:54 PM UTC, comment #1:

I'm using g++ (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) to compile. It didn't compile, unless I replaced

ImageChannel (Image &Image);
by
ImageChannel (class Image &Image);

line 59 in Image.h.

Regards

Uwe Sassenberg
Science-D-Visions

Anonymous
Sun 11 Dec 2005 10:05:32 PM UTC, original submission:

Error while compiling with GCC 4.0.2

make[1]: Entering directory `/usr/src/OpenEXR-1.2.2/exrmaketiled'
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1 -I. -I. -I.. -I../Iex -I../Half -I../Imath -I../IlmImf -pipe -march=i686 -O -march=athlon-mp -mmmx -mfpmath=sse -msse -m3dnow -pipe -DPIC -fPIC -O3 -MT Image.o -MD -MP -MF ".deps/Image.Tpo" \ -c -o Image.o `test -f 'Image.cpp' || echo './'`Image.cpp; \
then mv -f ".deps/Image.Tpo" ".deps/Image.Po"; \
else rm -f ".deps/Image.Tpo"; exit 1; \
fi
./Image.h:59: error: expected `)' before '&' token
./Image.h:64: error: 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: error: 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: error: ISO C++ forbids declaration of 'Image' with no type
./Image.h:71: error: expected ';' before '&' token
./Image.h:80: error: expected `)' before '&' token
./Image.h:143: error: no 'TypedImageChannel<T>::TypedImageChannel(Image&, int, int)' member function declared in class 'TypedImageChannel<T>'
./Image.h:143: error: template definition of non-template 'TypedImageChannel<T>::TypedImageChannel(Image&, int, int)'
./Image.h: In member function 'virtual Imf::Slice TypedImageChannel<T>::slice() const':
./Image.h:186: error: there are no arguments to 'image' that depend on a template parameter, so a declaration of 'image' must be available
./Image.h:186: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Image.cpp: At global scope:
Image.cpp:49: error: prototype for 'ImageChannel::ImageChannel(Image&)' does not match any in class 'ImageChannel'
./Image.h:54: error: candidates are: ImageChannel::ImageChannel(const ImageChannel&)
./Image.h:54: error: ImageChannel::ImageChannel()
Image.cpp: In constructor 'ImageChannel::ImageChannel(Image&)':
Image.cpp:49: error: class 'ImageChannel' does not have any field named '_image'
Image.cpp: In member function 'void Image::addChannel(const std::string&, Imf::PixelType)':
Image.cpp:96: error: no matching function for call to 'TypedImageChannel<half>::TypedImageChannel(Image&, int, int)'
./Image.h:77: note: candidates are: TypedImageChannel<half>::TypedImageChannel()
./Image.h:77: note: TypedImageChannel<half>::TypedImageChannel(const TypedImageChannel<half>&)
Image.cpp:100: error: no matching function for call to 'TypedImageChannel<float>::TypedImageChannel(Image&, int, int)'
./Image.h:77: note: candidates are: TypedImageChannel<float>::TypedImageChannel()
./Image.h:77: note: TypedImageChannel<float>::TypedImageChannel(const TypedImageChannel<float>&)
Image.cpp:104: error: no matching function for call to 'TypedImageChannel<unsigned int>::TypedImageChannel(Image&, int, int)'
./Image.h:77: note: candidates are: TypedImageChannel<unsigned int>::TypedImageChannel()
./Image.h:77: note: TypedImageChannel<unsigned int>::TypedImageChannel(const TypedImageChannel<unsigned int>&)
make[1]: *** [Image.o] Error 1
make: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/OpenEXR-1.2.2/exrmaketiled'

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 31 Mar 2006 10:38:30 PM UTCfkainzStatusNone=>Fixed
  Assigned toNone=>fkainz
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1