C++ library in avr

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello to all!

where I find some info about the c++ library that can i use in atmel studio?

In particular, what are the c++ libraries included in the atmel studio?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you talking about Boost, STL and stuff like that? If so forget it, they don't exist.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi clawson! 

I refer to the standard library, libstdc++.

I have done some experiment on Atmel Studio 6.2

#include <avr/io.h>

using namespace std;

int main(void)
{
	std::vector<int> c(6);
    while(1)
    {
        //TODO:: Please write your application code 
    }
	return 0;
}

this code doesn't compile, but when i go to type

std::

the editor gives me this help in the notetip associated with this typing

 

 

but i'm not able to use this item to compile the program. 

 

However, now I found this reference http://www.webring.org/l/rd?ring=avr;id=59;url=http%3A%2F%2Fwinavr%2Esourceforge%2Enet%2F,

but at this moment i'm not able to figure out how i can use these info, there are a lot of info!

 

In the case, that libstdc++ is unavailable to the avr toolchain, i can use the c library instead?
At this moment I need to use the atom library, but i use c++ to make my code.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As I say there are no such libraries. If you are looking for STL try here:

 

https://forum.arduino.cc/index.p...

 

I think a lot of people use Andy Brown's implementation

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank for the clarifing clawson, now i know that this libraries doesn't exist on the avr toolchain!!

But why the ide gives me that help tooltip?

I not need the STL libraries, i need to use some c++ library for manage the concurrent issues in my project.

I have an Arduino board, but i have also an stk500 board and an MSP-EXP432P401R board, so I do not want to depend on the Arduino framework.

In my little opinion, after the use of the stk500, the Arduino board and its framework is a strong limitation for an atmega 2560..

 

However, how i can find some useful help on using the c++ on the avr environment?
In all my honesty, i haven't very clear what i can do, and what i can't do, with the c++ in the avr environment.