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: <4.3.1.2.20001017120026.02018d18@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Tue, 17 Oct 2000 12:04:18 -0400 To: =?iso-8859-1?Q?=22Dehmel=2C_R=FCdiger=22?= , "'cygwin AT sourceware DOT cygnus DOT com'" From: "Larry Hall (RFK Partners, Inc)" Subject: RE: cygwin gcc problem In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id MAA29249 I think your answer is exactly as the documentation for the -fhuge-objects flag states. Try compiling libstdc++.a (and any other library you need) with the same flag. I expect that will remove the warnings you see at link time. Alternatively, you could just ignore the warnings and see if your program runs. They are, after all, just warnings (not errors). 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 At 02:01 AM 10/17/2000, Dehmel, Rüdiger wrote: >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