Re: In need of C++ gurus

2017-02-20 Thread Jan Synacek
On Mon, Feb 20, 2017 at 9:27 AM, Jakub Jelinek wrote: > On Mon, Feb 20, 2017 at 09:15:46AM +0100, Jan Synacek wrote: >> Hi, >> >> warzone2100 fails to build [1] and I have no idea how to fix that. >> Most of the errors are: >> >> main_sdl.cpp:79:13: error: expected unqualified-id before '__attribu

Re: In need of C++ gurus

2017-02-20 Thread Florian Weimer
On 02/20/2017 09:27 AM, Jakub Jelinek wrote: That looks like C++ and altivec.h on PowerPC. altivec.h changes the meaning of bool and vector keywords, so it is essential in what order and what mode you include it if you really need it (easiest is of course not include it at all). In general, for

Re: In need of C++ gurus

2017-02-20 Thread Jakub Jelinek
On Mon, Feb 20, 2017 at 09:15:46AM +0100, Jan Synacek wrote: > Hi, > > warzone2100 fails to build [1] and I have no idea how to fix that. > Most of the errors are: > > main_sdl.cpp:79:13: error: expected unqualified-id before '__attribute__' > static std::vector displaylist; // holds all our pos

Re: In need of C++ gurus

2017-02-20 Thread Dan HorĂ¡k
On Mon, 20 Feb 2017 09:15:46 +0100 Jan Synacek wrote: > Hi, > > warzone2100 fails to build [1] and I have no idea how to fix that. > Most of the errors are: it's a known problem on ppc64le, please search this lists archive, it was discussed recently (switching from --std=c++11 to --std=gnu++11

In need of C++ gurus

2017-02-20 Thread Jan Synacek
Hi, warzone2100 fails to build [1] and I have no idea how to fix that. Most of the errors are: main_sdl.cpp:79:13: error: expected unqualified-id before '__attribute__' static std::vector displaylist; // holds all our possible display lists ^ main_sdl.cpp:117:29: error: cannot conve