This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __cxa_pure_virtual


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]