EmbDev.net

Forum: ARM programming with GCC/GNU tools makefile for c++


Author: Joakim Gustafsson (combi)
Posted on:

Rate this post
0 useful
not useful
Hi!
I'm using a AT91SAM7X256 cpu on the AT91SAM7X-ek board with the "getting
started" project makefile. I'm using Eclipse and GNU gcc. Now I'm trying
to use sourcefiles with c++ but the makefile don’t seem to support c++.
Dose anyone has a compatible makefile for this or knows what the problem
am I‘ll be grateful.
Cheers!

Author: Joakim Gustafsson (combi)
Posted on:

Rate this post
0 useful
not useful
Joakim Gustafsson wrote:
> Hi!
> I'm using a AT91SAM7X256 cpu on the AT91SAM7X-ek board with the "getting
> started" project makefile. I'm using Eclipse and GNU gcc. Now I'm trying
> to use sourcefiles with c++ but the makefile don’t seem to support c++.
> Dose anyone has a compatible makefile for this or knows what the problem
> am I‘ll be grateful.
> Cheers!

Forgot to say I'm using Atmel SAM-ICE JTAG...

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Joakim Gustafsson wrote:

> I'm using a AT91SAM7X256 cpu on the AT91SAM7X-ek board with the "getting
> started" project makefile. I'm using Eclipse and GNU gcc. Now I'm trying
> to use sourcefiles with c++ but the makefile don’t seem to support c++.
> Dose anyone has a compatible makefile for this or knows what the problem
> am I‘ll be grateful.

The "bare metal ARM" tutorial at embedded.com (see thread in this forum
for links) explains the settings needed for C++, there is an example for
AT91SAM7S which should be rather easy to port to SAM7X since the C++
options do not depend on the target-family. There is also a small C++
examples in my WinARM examples collection, see
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm...

Martin Thomas

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.