At 11:46 AM 4/28/05 +0000, soren_t_hansen wrote:
>--- 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
What other libraries did you use? What references are you missing? Given
the size of the 2100 family C is more common than C++ but I understand a
number of people use it.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions, be
they legal, genetic, or physical. If you don't believe me, try to chew a
radio signal. " -- Kelvin Throop, III
http://www.aeolusdevelopment.com/