LoginSignup
0
0

More than 5 years have passed since last update.

g++でiotaを使う時のコンパイルオプション

Posted at

g++でiotaを使ったプログラムのコンパイルをしたら,

error: 'iota' was not declared in this scope

って言われた.インクルードファイルが足りないのかと思ったがそうではなかった.コンパイラオプションをつけなければいけない,ということでした.時分の利用しているg++はバージョンは5.4.0でこの場合,-std=c++14をつけてコンパイルしたらうまくいきました.

0
0
2

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
0