jeudi 1 octobre 2015

Steps to compile and build in c++14 on OSX10.9.5?

I use terminal/sublime text to run c++ programs and they show warning with C++11 features and errors for C++14 features. I read various solutions for this, but none seems to help. I installed macports and then installed gcc 4.9 and clang 3.6 by

$sudo port install gcc49

$sudo port instLL CLANG-3.6

Using the command below the programs compiles fine,

g++ -std=c++1y filename.cpp

but when i use the make it show errors and warnings.

make filename 

I have now uninstalled macports and Xcode.

I would be grateful if you give detailed steps...

Aucun commentaire:

Enregistrer un commentaire