multiple definition of `typeinfo for std::exception'

Aleksei Andevis aleksei@andevis.ee
Tue Feb 10 15:35:00 GMT 2004


Hell All again!
In my project I user STL_PORT 4.5.3 compiled under
Mingw32 3.3.1 , and mostly parts linked fine
but in one my dll I user
follows construction

class _SHARED_BASE_EXPORT MyError : public std::exception

and when I linked this DLL with stlport library tohether
linker produced follows:

----------------------------------------------------------------------------
--------------------------------
Linking...

\mingw\lib\libstdc++.a(eh_personality.o)(.data$_ZTISt9exception+0x0):
multiple definition of `typeinfo for std::exception'
C:\Projects\F1\platform\source\f1shared_base\Debug\f1error.o(.rdata$_ZTISt9e
xception+0x0):C:\MinGWStudio\MinGW\include\stlport_include\stl\_string.h:
first defined here

\mingw\lib\libstdc++.a(eh_personality.o)(.text$_ZTSSt9exception+0x0):
multiple definition of `typeinfo name for std::exception'
C:\Projects\F1\platform\source\f1shared_base\Debug\f1error.o(.rdata$_ZTSSt9e
xception+0x0):C:\MinGWStudio\MinGW\include\stlport_include\stl\_string.h:
first defined here
----------------------------------------------------------------------------
--------------------------------

Is somebody has home problem in past ?
Or can you gime me advise - where is can by problem ?

Best Regards



More information about the Gcc-help mailing list