3

我在确定我可以访问哪些库时遇到问题。我知道我可以使用 Atmel Studio 6 IDE 在 C++ 中对微控制器 (Atmega328p) 进行编程;但是,我无法确定我可以访问哪些库的记录位置。例如,我可以使用 STL(比如,vectors,deques ...)吗?如果有人可以向我指出一些文档,那就太好了。

谢谢。

4

1 回答 1

1

Atmel Studio 6 不附带 STL 的实现。avr-gcc 自带了一些库——进去看看:

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

那不包含<vector>or <deques>,但确实包含<string>。不过,有很多STL 实现移植到 Atmel Studio:看看:

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/

于 2014-02-27T04:16:08.600 回答