Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: =?iso-8859-1?Q?=22Dehmel=2C_R=FCdiger=22?= To: "'Larry Hall (RFK Partners, Inc)'" , "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: cygwin gcc problem Date: Tue, 17 Oct 2000 08:01:00 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id CAA32338 The problem more in detail: myclass has members like: char buffer[20000]; If I use -fhuge-objects the link error is: /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$7fstream$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$8ofstream$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$8ifstream$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$11fstreambase$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$8iostream$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$7istream$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(fstream.o): warning: duplicate section `.data$_vt$7ostream$3ios' has different size /usr/bin/ld: /usr/lib/libstdc++.a(iostream.o): warning: duplicate section ... ... from gcc man: -fhuge-objects Support virtual function calls for objects that exceed the size representable by a `short int'. Users should not use this flag by default; if you need to use it, the compiler will tell you so. This flag is not useful when compiling with -fvtable-thunks. Like all options that change the ABI, all C++ code, including libgcc must be built with the same setting of this option. Is the cygwin compiler (and its libs) build without this flag? Ruediger > -----Ursprüngliche Nachricht----- > Von: Larry Hall (RFK Partners, Inc) [SMTP:lhall AT rfk DOT com] > Gesendet am: Montag, 16. Oktober 2000 18:07 > An: "Dehmel, Rüdiger"; 'cygwin AT sourceware DOT cygnus DOT com' > Betreff: Re: cygwin gcc problem > > At 11:52 AM 10/16/2000, Dehmel, Rüdiger wrote: > >Hello, > > > >I use gcc version 2.95.2 19991024 (release-2) compiler from cygwin > >and get the compiler error: > > > >sorry, not implemented: object size exceeds normal limit for virtual > >function > > table implementation, recompile all source and use -fhuge-objects > > > >source: > >class myclass : public ostream, public streambuf { ... } > > > >Using the flag -fhuge-objects causes link problems. (library is not > compiled > >with this flag) > > > >On REDHAT linux the same code compiles and run OK. > >gcc version 2.95.2 19991024 (release) (There is no sub number) > > > >Any help? > > > > Probably not with this level of detail. Perhaps you should supply > information about the link problems you get. > > > > Larry Hall lhall AT rfk DOT com > RFK Partners, Inc. http://www.rfk.com > 118 Washington Street (508) 893-9779 - RFK Office > Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com