This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Thu, 1 Feb 2001, Jonathan Riches wrote: > Date: Thu, 1 Feb 2001 17:51:45 -0000 > From: Jonathan Riches <jon.riches@westbridge-design.co.uk> > To: crossgcc <crossgcc@sourceware.cygnus.com> > Cc: Tim Riches <tim.riches@westbridge-design.co.uk> > Subject: __builtin_delete not found > > Hello, > can anyone help me out with a problem? I'm trying to compile a target file > for a powerpc 860 and it appears that as soon as a C++ destructor is > compiled then the object file includes a call to "__builtin_delete". The > linker gives up at this point. > I am using the same tools as you are (except older versions: binutils-2.9.1, newlib-1.8.2) and running under Linux. To resolve the C++ ctor/dtor problem, I ended up writing my own dynamic memory management function. __builtin_delete ==> void operator delete [] (void *); __builtin_vec_delete ==> void operator delete (void *); __builtin_new ==> void* operator new (size_t); __builtin_vec_new ==> void* operator new[] (size_t); and read '==>' as "will be resolved if you have the function". Hope this helps. > > powerpc-rtems-gcc -o number.obj -g number.cpp -c -fno-exceptions > powerpc-rtems-ld -T linkcmds number.obj -nodefaultlibs -Lstdc++ -Lgcc -o > number.hex > > command line output: > #################################################################### > number.obj: In function `Number::~Number(void)': > /home/jona/metaware/number.cpp:146: undefined reference to > `__builtin_delete' > > gcc: 2.95.2 > binutils 2.10.1 > newlib-1.9.0 > rtems-ss-20010109 (all rtems patches applied to gcc, bin and newlib) > cygwin 1.1.6 (NT4 host) > > Regards Newbie > > Jonathan Riches > Design Engineer > Westbridge Design Ltd > Privett, Alton, GU34 3PL, UK > tel. 01730 828111 fax 01730 828123 > > > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com > -- Hans Dulimarta, Ph.D. | dulimart@computer.org Research Associate | http://www.egr.msu.edu/~dulimart P: 517-432-7589 | http://corelinux.sourceforge.net F: 760-281-7691 http://freshmeat.net/projects/snapsource Elec. & Comp. Engg., Mich. State Univ., E. Lansing, MI 48824 ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |