Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

Got C++0x errors.
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=391
Page 1 of 1

Author:  Chang-Joe-Rim [ Sat May 05, 2012 1:01 pm ]
Post subject:  Got C++0x errors.

Hi there!!

I'm C++0x newbie.
Built with CMake successfully, but got some errors. D:

Compiler, IDE and etc that I use :

Mingw(gcc 4.6.2)
Codeblocks 10.05
CMake 2.8.8
Polyvox recommended version

error image
Image

As you know gcc 4.6.2 supports c++0x and I enabled -std=c++0x.
I googled about that error(c++0x_warning(Is it error??)), but I couldn't find solutions.

How can I do?TT

Author:  milliams [ Sat May 05, 2012 3:32 pm ]
Post subject:  Re: Got C++0x errors.

Hi there. This error is caused by an oversight on my part. We currently check for GCC and Clang in order to enable C++0x mode but I've net yet added the check for MinGW. The simplest way for you to fix this is to open the CMakeLists.txt file in the base directory of PolyVox and find the lines (about line 24) that are:
Code:
IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW"
        ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
ENDIF()
and turn them into just
Code:
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
This will enable C++0x mode and should allow the compilation to continue.

Author:  Chang-Joe-Rim [ Sat May 05, 2012 11:34 pm ]
Post subject:  Re: Got C++0x errors.

wow!! thanks!! it's work!!

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/