__throw link resolution problem
Todd Vierling
tv@pobox.com
Fri Apr 3 21:11:00 GMT 1998
On Mon, 30 Mar 1998, Jonathan Clark wrote:
: When linking I get the following messages :
:
: /home/jc/code/i4/image/t_line.hh:129: undefined reference to `__throw'
: /home/jc/code/golg/map_view.cc:43: undefined reference to `__rtti_si'
:
: however I have never used catch or throw in my program.
Ah, but egcs now has exceptions and RTTI turned on by default, and those...
: I do not link with or use any part of libstdc++.a
...require linking with libstdc++. No worries, though; if you don't use
RTTI or exceptions, try:
g++ -fno-rtti -fno-exceptions ...
Voila!
--
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)
More information about the Gcc-bugs
mailing list