makefile for c++

OP #1172983
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!
OP #1172984
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...
Moderator #1172985
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_projects/index_at91.html#at91_cpp

Martin Thomas

Reply

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.