This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: [ECOS] Using C++ operator new and delete
- From: Andrew Lunn <andrew at lunn dot ch>
- To: David Luca <davidluca3000 at yahoo dot com>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-devel at ecos dot sourceware dot org
- Date: Tue, 21 Nov 2006 14:24:07 +0100
- Subject: Re: [ECOS] Using C++ operator new and delete
- References: <20061121130853.GF30460@lunn.ch> <20061121131340.70662.qmail@web38715.mail.mud.yahoo.com>
On Tue, Nov 21, 2006 at 05:13:40AM -0800, David Luca wrote:
> I attached a zip with the hello.c application, my
> platform config file and makefile. This is the output:
>
> arm-elf-gcc -fno-builtin -mcpu=arm9tdmi -mhard-float
> -c -Wall -O -ggdb -I. -Wall
> -nostdlib -Imc9328_install/include -O2
> -ffunction-sections -fdata-sections -fno
> -rtti -fno-exceptions -fvtable-gc -fno-schedule-insns
> -fno-schedule-insns2 -D MO
> NCOMPTR=0x10000038 -o hello.o hello.c
new is a C++ function, but you are using the C compiler. This is not
going to work. Look at the gcc documentation, section "3.2 Options
Controlling the Kind of Output".
Andrew