|Help. -std=c++11 or -std=gnu++11 compiler options. [message #1043164]
||Wed, 17 April 2013 07:11
| Carlos Catalan Garcia
Registered: April 2013
I'm trying to create a random number simulation for a Normal Distribution to deal with a MonteCarlo simulation. I decided to run it through the random generetor contained by (already added in the code)
Although the code seems to be right, I get the following error in the eclipse's console:
Building file: ../src/MonteCarlo.cpp
Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/MonteCarlo.d" -MT"src/MonteCarlo.d" -o "src/MonteCarlo.o" "../src/MonteCarlo.cpp"
In file included from /usr/include/c++/4.7/random:35:0,
/usr/include/c++/4.7/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.
make: *** [src/MonteCarlo.o] Error 1
The random.h is ready to be used. It's placed in my project:includes and then /usr/include/c++/4.7/random (as you could see).
Is that something wrong with the software? could I continue using Eclipse to finish my project?
I might say, I'm using the eclipse software in ubuntu 12.
Could someone help me???
Powered by FUDForum
. Page generated in 0.01706 seconds