help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

arm-elf-g++ linker error


From: Hansen
Subject: arm-elf-g++ linker error
Date: Wed, 27 Apr 2005 16:33:05 +0200

Hi Group

I've started up a C++ standard make project in Eclipse, where I would
like to make an applikation for the lpc2138.

When trying to use C++ functions like <stdio.h> and printf() I get the 
following message when linking:

undefined reference to 'puts'

I get the same kind of message when trying other functions as well, and also 
when trying to declare a function as virtual. Also when using assert() which 
are a C function.

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? And especially how to include them. I use GCC to link.

Best Regards
Søren Hansen 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]