skyscraper's blog

By skyscraper, history, 6 years ago, In English

I have recently started using VSCode(1.28) for programming in c++ on my mac. But I can't use a lot of stl functions like emplace_back() ... Is there a way to resolve this, Thank You.

  • Vote: I like it
  • -13
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I think g++ uses C++98 by default. You have to add the flag -std=C++14 to your compilation options if you want to use C++14.