Public
Authored by Mohcine Chraibi

Testing compiler for c++17

If you have more than one compiler, then use cmake with the option -DCMAKE_CXX_COMPILER.

  • download the zip file, extract it and cd to its location
  • cd build
  • cmake -DCMAKE_CXX_COMPILER=g++-8 ..
  • make

c__17.zip

OSX

clang on the command line does not support c++17

Brew user

brew install gcc

version: 8.2.0

Port user

port install gcc8

then maybe select

sudo port select --set gcc mp-gcc8
Edited
main.cpp 762 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment