USE C++11 WHEN COMPILING OD

USE C++11 WHEN COMPILING OD

Postby paul424 » 17 Jun 2013, 16:14

Genral notice : some of the files ( some AI*.cpp) use explicit construct of new C++ standard : C++11.

Each compiler has it;'s flag , for GNU g++ it's : "g++ --std=c++11"

bash cmd : cmake-gui --> tag cmake--> ->CMakeCxxFlags

I feel like a broken vinyl plate .....
Last edited by paul424 on 09 Jul 2013, 15:51, edited 1 time in total.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: USE C++11 WHEN COMPILING OD

Postby Bertram » 18 Jun 2013, 09:00

Could the project readme / install instructions be updated?
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: USE C++11 WHEN COMPILING OD

Postby paul424 » 18 Jun 2013, 12:18

Bertram could you make online doxygen documentation in doxygen possible ?
That it would exec doxygen Doxyfile command everytime some branch chanes ?
It does not have to be on SF ...
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: USE C++11 WHEN COMPILING OD

Postby Bertram » 18 Jun 2013, 14:26

Bertram could you make online doxygen documentation in doxygen possible ?
That it would exec doxygen Doxyfile command everytime some branch chanes ?
It does not have to be on SF ...


You mean some kind of git hook? or something else?
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: USE C++11 WHEN COMPILING OD

Postby domtron » 18 Jun 2013, 14:55

This was the first problem I had on the dev branch. You need to put somewhere(probably the wiki) that says OD needs g++ 4.7 or higher to compile. [see http://forum.freegamedev.net/viewtopic.php?f=45&t=4601 and more specifically this http://stackoverflow.com/questions/14674597/cc1plus-error-unrecognized-command-line-option-std-c11-with-g]

automatic doxygen would be great!
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: USE C++11 WHEN COMPILING OD

Postby Bertram » 19 Jun 2013, 10:23

Hi guys! :)

I'm all for the two points, yet, please remember I don't have push access (and I am not requesting it), and that I don't have any web space available to set up automatic online doxygen documentation. I bet those two things should be requested to Sven, right?

My only involvement with Open Dungeon is to try and make a Win32 binary and installer for the 4.10 version, and leave notes of how I did it afterwards. After all, I've got my own ghosts to hunt. ;)

Best regards,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: USE C++11 WHEN COMPILING OD

Postby MCMic » 10 Jul 2013, 12:47

Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: USE C++11 WHEN COMPILING OD

Postby Bodsda » 10 Jul 2013, 14:29

MCMic {l Wrote}:Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.


I've sent the maintainer an email.
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: USE C++11 WHEN COMPILING OD

Postby domtron » 10 Jul 2013, 16:51

Bodsda {l Wrote}:
MCMic {l Wrote}:Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.


I've sent the maintainer an email.


That's whats so great about FOSS :)
Whats even better is one of us can go fix it if it isn't resolved within our time frame. :D
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: USE C++11 WHEN COMPILING OD

Postby Bodsda » 11 Jul 2013, 10:20

domtron {l Wrote}:
Bodsda {l Wrote}:
MCMic {l Wrote}:Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.


I've sent the maintainer an email.


That's whats so great about FOSS :)
Whats even better is one of us can go fix it if it isn't resolved within our time frame. :D


Resolved - from Andreas (AS maintainer)
11 July 00:39
Hi Craig,

Thanks for letting me know. I mostly use MSVC and wasn't even aware that G++ had a version 4.8 available already.

I'll update the code in AngelScript to make it compatible with both g++ 4.7 and 4.8.

Let me know if you find any other issues with AngelScript. Or even if you have any suggestions for new features that you'd like to have added.

Regards,
Andreas

11th July 02:46
Hi Craig,

This should be fixed now in revision 1663.
Let me know if my changes didn't work.

Regards,
Andreas
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Who is online

Users browsing this forum: No registered users and 1 guest