This is the mail archive of the
mailing list for the GCC project.
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: sinisa at mysql dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 17:08:59 +0000
- Subject: Re: __cxa_pure_virtual
- Organization: Codesourcery LLC
- References: <firstname.lastname@example.org>
Sinisa Milivojevic wrote:
> Is there a way of compiling a C++ file, which does not contain any
> references to STL classes, so that resultant object file will have no
> references to the above symbol, defined in pure.cc of libstdc++.
Other than by providing definitions of all your abstract functions, no.
> Any solution or work-around ??
You can also link with libsupc++, which contains just the C++ runtime
support routines without the std lib stuff. Or you could define that
symbol explicitly to the linker
(or, if invoked via gcc)
-Wl,--defsym -Wl __cxa_pure_virtual=0
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
email@example.com : http://www.cs.bris.ac.uk/~nathan/ : firstname.lastname@example.org