
On 3/20/2012 1:27 AM, Antony Polukhin wrote:
2012/3/19 Joel de Guzman <joel@boost-consulting.com>:
Hi,
I can't get this to compile on gcc-4.6.1 with -std=c++0x flag:
#include <boost/random.hpp>
int main() { return 0; }
I'm getting an error in lexical_cast:
Could not reproduce it with trunk version and gcc-4.6.1-9ubuntu3. Which version of boost are you using?
I tested both trunk and release branches + the 1.49.0 release. All fail. I'm on Windows using gcc-4.6.1 mingw. I typically test using BJam. I also test using the gcc compiler directly with these flags: -Wall -mconsole -ftemplate-depth-512 -DNDEBUG -DNDEBUG -O3 -finline-functions -funroll-loops -Wfatal-errors -std=c++0x -static-libgcc -static-libstdc++ ========================================================================== Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=c:/dev/tools/mingw/bin/../libexec/gcc/mingw32/ 4.6.1/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.6.1/configure --enable-languages=c,c++, fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.6.1 (GCC) ========================================================================== Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com