🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46635

gcc-2.5.8: operator int(...)' must take `void' ?

#46635
From: bastian bluemel
Date: Sat, 29 Oct 1994 00:53
28 lines
1604 bytes
hello, 
my third stage gcc-2.5.8 runs well on the SGI-INDIGO-II (IRIX 5.2), 
except the following error message when compiling programs that use 
the Image-Vision-Library:
In file included from program.cc:13:
/usr/include/il/ilSize.h:52: `ilSize::operator int(...)' must take `void'
/usr/include/il/ilSize.h:52: confused by earlier errors, bailing out

The ilSize.h header looks like this:
#ifdef __cplusplus
...
    operator int() const
        { return x*y*z*c; }
...
#endif

What is wrong? 
Is the 'operator int() const' construct non-standard?
(I think so.)

Thanks for any help.
bastian.
-- 
* Bastian Bluemel at Hermann-Foettinger-Institut, TU-Berlin            *
* Mueller-Breslau-Strasse 8, 10623 Berlin, Germany                     *
* email: basti@pi.tu-berlin.de (or: nickbeaf@w250zrz.zrz.tu-berlin.de) *
* phone: Germany-30-314.25614                                          *
Technical Details
Message-ID: <38s6ei$p6@brachio.zrz.TU-Berlin.DE>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!EU.net!uunet!zib-berlin.de!zrz.TU-Berlin.DE!basti

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8ddb476a86f8583,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-10-28 17:53:37 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!EU.net!uunet!zib-berlin.de!zrz.TU-Berlin.DE!basti
From: basti@pi.tu-berlin.de (bastian bluemel)
Newsgroups: gnu.gcc.help
Subject: gcc-2.5.8: operator int(...)' must take `void' ?
Date: 29 Oct 1994 00:53:37 GMT
Organization: Hermann-Foettinger-Institut, TU-Berlin
Lines: 28
Message-ID: <38s6ei$p6@brachio.zrz.TU-Berlin.DE>
Reply-To: basti@pi.tu-berlin.de
NNTP-Posting-Host: galilei.pi.tu-berlin.de
Keywords: sgi gcc