Skip to content

Instantly share code, notes, and snippets.

@kunthar
Created September 9, 2015 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunthar/9e934497126309d924c3 to your computer and use it in GitHub Desktop.
Save kunthar/9e934497126309d924c3 to your computer and use it in GitHub Desktop.
caf compile steps
sudo port install cmake
gcc --version (gcc (MacPorts gcc49 4.9.3_0) 4.9.3)
which gcc (/opt/local/bin/gcc)
./configure --with-gcc=/opt/local/bin/g++
make
sudo make install
ls /usr/local/include/caf/ (files exist)
λ kunthar : port select --list gcc
Available versions for gcc:
mp-gcc48
mp-gcc49 (active)
none
@kunthar
Copy link
Author

kunthar commented Sep 9, 2015

found an error

/usr/local/share/caf/examples
λ kunthar : gcc aout.cpp
In file included from /opt/local/include/gcc49/c++/random:35:0,
from aout.cpp:5:
/opt/local/include/gcc49/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
aout.cpp:10:23: fatal error: caf/all.hpp: No such file or directory
#include "caf/all.hpp"
^
compilation terminated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment