Mail Archives: cygwin/2000/10/17/02:02:31
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
- Raw text -