--- In lpc2000@yahoogroups.com, "soren_t_hansen" <soren_t_hansen@y...> wrote: > > I've started up a C++ standard make project in Eclipse, where I > would like to make an applikation for the lpc2138. > > So far everything has been going alright until I wanted to try to > use the assert() function. I included the <assert.h> and also tried > with the <cassert> but both times I got the message: > undefined reference to `__assert' > when linking. > > My linking command looks like this: > > -T $(LD_SCRIPT_RAM) -lstdc++ > -Wl,-Map=".\bin\Ram\Blinky.map",-Ttext=0x40000000,-Tdata=0x40003000 \ > --gc-sections -o .\RAM\Blinky.elf \ > -nostartfiles -nodefaultlibs > > As I've never tried working with "make" before, I have a hard time > finding out if my linking command is correct and which libraries to > include. I use GCC to link. > > Best Regards > Søren Hansen Has anyone succeeded in making a C++ program using the GNUARM toolchain and using e.g. stdio.h? It seems as if no matter which libraries I include, I have undefined references. I've also tried with the newlib-lpc library. Best Regards Søren Hansen
Message
Re: assert and GNUARM
2005-04-28 by soren_t_hansen
Attachments
- No local attachments were found for this message.