LoginSignup
0
1

More than 5 years have passed since last update.

arm-none-eabi-g++でSTLのヘッダが軒並みない

Posted at

※疲れたので完全にメモで真面目に書いてません

Ubuntu 15.10を入れた。

% arm-none-eabi-g++ hemi.cpp
fatal error: iostream: No such file or directory

は?ふざけんな

https://taki4416.com/wordpress/2014/05/01/ubuntu-14-04%E3%81%A7gcc-arm-none-eabi%E3%82%92%E4%BD%BF%E3%81%86/
を参考に、

sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi gdb-arm-none-eabi
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo apt-get update
sudo apt-get install gcc-arm-none-eabi=4.9.3.2015q3-1wily1

んでもって、まだ

undefined reference to `_exit'

とか言ってきやがる。

arm-none-eabi-g++ hemi.cpp --specs=nosys.specs

だとコンパイルが通るので

arm-none-eabi-g++ hemi.cpp --specs=nosys.specs -dumpspecs > specs

からの

sudo cp specs /usr/lib/gcc/arm-none-eabi/4.9.3/

で解決したっぽい。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1