Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

assert and GNUARM

2005-04-27 by soren_t_hansen

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.