I am trying to use the Blaze math library in CB, but keep getting tons of errors in the building process.
The example program I use is a pared down version of FirstExample from the Blaze wiki:
#include <blaze/Math.h>
using blaze::StaticVector;
using blaze::DynamicVector;
int main()
{
StaticVector<int,3UL> a{ 4, -2, 5 };
std::cout << "a =\n" << a << "\n";
return 0;
}
Running this program from a terminal works fine, with the command line
g++ -std=c++1y -o FirstExample FirstExample.cpp
./FirstExample
In the CB "build options" I did check "Have g++ follow the C++11ISO C++ language standard, and the global compiler settings does link to the correct compiler in toolchain executables. Although in /usr/bin gcc/g++ is a link to gcc-6/g++-6, but I also tried gcc-6/gcc-6 directly, which does not work either. I also tried putting -std=c++1y in "Other linker options" without success. I'm using Ubuntu 14.04.
I am more or less out of options to try (I even uninstalled and reinstalled CB in the hope it would pick up the correct gcc, also to no avail), but I would really like to use both CB and this library. Help will be appreciated.