It is currently Sat Aug 22, 2020 1:44 pm


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Got C++0x errors.
PostPosted: Sat May 05, 2012 1:01 pm 

Joined: Sun Apr 29, 2012 11:44 am
Posts: 3
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


Last edited by Chang-Joe-Rim on Sun Apr 07, 2013 7:20 am, edited 2 times in total.

Top
Offline Profile  
Reply with quote  
 Post subject: Re: Got C++0x errors.
PostPosted: Sat May 05, 2012 3:32 pm 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
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.

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Got C++0x errors.
PostPosted: Sat May 05, 2012 11:34 pm 

Joined: Sun Apr 29, 2012 11:44 am
Posts: 3
wow!! thanks!! it's work!!


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net