This is the mail archive of the ecos-devel@sourceware.org mailing list for the eCos 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: [ECOS] Using C++ operator new and delete


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


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