This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __cxa_pure_virtual
- 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: <15367.40775.654107.915798@sinisa.nasamreza.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
--defsym __cxa_pure_virtual=0
(or, if invoked via gcc)
-Wl,--defsym -Wl __cxa_pure_virtual=0
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org