Compiling with -fexceptions causes link errors

Pete Magsig magsig@acuson.com
Wed Nov 5 16:38:00 GMT 1997


When I compile with the -fexceptions flag, I get the following messages
when I
link with gcc:


/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404/libgcc.a(tinfo.o):
In function `_rtti_class':
/home/noer/src/beta18/cdk/gcc/cp/tinfo.cc(.text+0x28): multiple
definition of `__rtti_class'
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404\../../../../i386-cygwin32\lib/libcygwin.a(ds48.o)(.text+0x0):
first defined here
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404/libgcc.a(tinfo.o):
In function `_rtti_si':
/home/noer/src/beta18/cdk/gcc/cp/tinfo.cc(.text+0x54): multiple
definition of `__rtti_si'
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404\../../../../i386-cygwin32\lib/libcygwin.a(ds53.o)(.text+0x0):
first defined here
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404/libgcc.a(tinfo.o):
In function `_rtti_user':
/home/noer/src/beta18/cdk/gcc/cp/tinfo.cc(.text+0x78): multiple
definition of `__rtti_user'
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404\../../../../i386-cygwin32\lib/libcygwin.a(ds54.o)(.text+0x0):
first defined here
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404/libgcc.a(tinfo2.o):
In function `_throw_type_match_rtti':
/home/noer/src/beta18/cdk/gcc/cp/tinfo2.cc(.text+0xf0): multiple
definition of `__throw_type_match_rtti'
/apps/cygnus/progressive-97q2/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32\cygnus-2.7.2-970404\../../../../i386-cygwin32\lib/libcygwin.a(ds77.o)(.text+0x0):
first defined here
gcc: Internal compiler error: program ld got fatal signal 1


Any insights as to what is causing this problem? I plowed through the
mailing list
archives but couldn't find anything pertaining to this error. This
problem only happens
when I use the -fexceptions flag: if I comment out my exceptions code
and compile
without the flag, then everything works just fine. I've not been able to
get exceptions
to work in my cygwin32 environment for this reason.

Any suggestions are welcome.

Pete



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list