Beginner: AVR C++ Atmel Studio 6

≡放荡痞女 提交于 2019-12-23 20:01:57

问题


I'm having an issue working out what libraries I have access to. I understand that I can use the Atmel Studio 6 IDE to program the microcontroler (Atmega328p) in C++; however, I can't work out where it is documented what libraries I have access to. For example, can I use the STL (so like, vectors, deques...)? If someone could point me towards some documentation, that'd be great.

Thanks.


回答1:


Atmel Studio 6 doesn't come with an implementation of STL. There are some libraries that avr-gcc comes with--look in:

C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gnu-toolchain\avr\include\

That does not contain <vector> or <deques>, but it does have <string>. There are lots of STL implementations ported over to Atmel Studio though: take a look at:

http://www.gammon.com.au/forum/?id=11119

http://andybrown.me.uk/wk/2011/01/15/the-standard-template-library-stl-for-avr-with-c-streams/



来源:https://stackoverflow.com/questions/13329236/beginner-avr-c-atmel-studio-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!