I have installed FreeBSD 9.1, which has the clang 3.1 compiler. As I understand it, if this compiler is used with libc++ and the correct compiler options, then there is 100% support for the new C++ Standard.
1. libc++. This is the new standard that was created as a sub project to the LLVM project. It provides 100% implementation for all C++ 11 features and is 100% complete with no bugs.
If I try to find libc++ by using locate, I get a long listing of directories under:
/usr/src/contrib/libc++/src and
/usr/src/lib/libc++/Makefile.
From this, I assumed that libc++ has not been built, though all the sources are available. So I enter the directory with the makefile and type [CMD="make"][/CMD]. This is the output from that is a warning about object directory not being changed and an error about an unrecognised command line option "-std=c++0x".
What is the position with libc++? Do I have to build it from these sources? If yes, what is the procedure?
2. Assuming libc++ is installed, can you state what entries or changes need to be made to the shell $PATH so that a program using c++11 compiles and links without error?
3. Have you managed to get C++ 11 up and running under FreeBSD 9.1? Do you have 100% of the features available? Or am I attempting to do the impossible here?
1. libc++. This is the new standard that was created as a sub project to the LLVM project. It provides 100% implementation for all C++ 11 features and is 100% complete with no bugs.
If I try to find libc++ by using locate, I get a long listing of directories under:
/usr/src/contrib/libc++/src and
/usr/src/lib/libc++/Makefile.
From this, I assumed that libc++ has not been built, though all the sources are available. So I enter the directory with the makefile and type [CMD="make"][/CMD]. This is the output from that is a warning about object directory not being changed and an error about an unrecognised command line option "-std=c++0x".
What is the position with libc++? Do I have to build it from these sources? If yes, what is the procedure?
2. Assuming libc++ is installed, can you state what entries or changes need to be made to the shell $PATH so that a program using c++11 compiles and links without error?
3. Have you managed to get C++ 11 up and running under FreeBSD 9.1? Do you have 100% of the features available? Or am I attempting to do the impossible here?