I create a simple main function and above it, I include armadillo library.
#include <armadillo>
I compiled it using g++ (version of GCC is 5.3) and under cygwin 64bit on windowse 8. I turned on c++11 option and added -larmadillo
for linking to armadillo library.
Once I compile the code, I receive such horrible error. The same code runs absolutely fine on windowse XP 32 bit.
usr/include/armadillo_bits/compiler_setup.hpp:73:88: note: #pragma message: WAR
NING: #define ARMA_DONT_USE_CXX11 before #include <armadillo>
#pragma message ("WARNING: #define ARMA_DONT_USE_CXX11 before #include <arm
adillo>")
^
In file included from /usr/include/armadillo:310:0,
from main.cpp:1:
/usr/include/armadillo_bits/arma_cmath.hpp: In function 'float arma::arma_log1p(
float)':
/usr/include/armadillo_bits/arma_cmath.hpp:270:12: error: 'log1p' is not a membe
r of 'std'
return std::log1p(x);
^
compilation terminated due to -Wfatal-errors.
Makefile:110: recipe for target 'main.o' failed
make: *** [main.o] Error 1