Fwd: Re: [scribus-dev] C++11
Hi all, I asked the Scribus guys what their plans are regarding C++11. They had not thought about it much, but I got a very interesting reply, that is relevant for us too. Please read below.
regards, Johan
-------- Original Message -------- From: - Thu Nov 07 23:35:19 2013 Date: Thu, 07 Nov 2013 02:21:04 +0100 From: Jean Ghali <jghali@...373...> To: Scribus Development Mailing List <scribus-dev@...3050...>, jbc.engelen@...2592... Subject: Re: [scribus-dev] C++11
Hi,
For making the switch to C++11, all C++ dependencies have to be compiled using C++11 too. It is indeed dangerous to link C++11 objects and C++ objects compiled according to previous standards: - http://gcc.gnu.org/wiki/Cxx11AbiCompatibility - http://stackoverflow.com/questions/9408656/do-we-need-to-recompile-libraries... - http://stackoverflow.com/questions/10065055/why-is-stdlist-bigger-on-c11
So basically the main requirements for us to switch to C++11 would be that qt binaries provided by distros are compiled according to C++11. I don't known if this is the case currently but i doubt it.
Cheers, Jean Ghali
Le 06/11/2013 20:05, Johan Engelen a écrit :
Hi all, I'm rooting for requiring C++11 for lib2geom ASAP. How badly would this hurt Scribus development? ;) Are there any plans about when to make the switch to C++11 for Scribus?
(I'm not subscribed to the list, so please also send replies directly to my address)
Cheers, Johan (Inkscape and 2geom developer)
Em Qui, 2013-11-07 às 23:55 +0100, Johan Engelen escreveu:
I asked the Scribus guys what their plans are regarding C++11. They had not thought about it much, but I got a very interesting reply, that is relevant for us too. Please read below.
Indeed, all this info is interesting.
And unfortunately, it seems we will have to wait more to use C++11. I'll skip the changes (lambdas) that I wanted to introduce in libdepixelize and finish the features with as little spagheti code as possible. But I'll have to choose between (1) put related code closer or (2) add abstractions that avoid code duplication. T_T
Hi all, Actually, I think we are safe when not using gcc 4.7.0 or 4.7.1. :-) But it was fixed in 4.7.2. http://stackoverflow.com/questions/16190269/g-always-backward-compatible-wit...
So, good news! What compiler versions do people use? On Windows, Nicolas has managed to upgrade us almost to 4.8.1 (great work), just a few loose ends left.
Cheers, Johan
On 8-11-2013 3:26, Vinícius dos Santos Oliveira wrote:
Em Qui, 2013-11-07 às 23:55 +0100, Johan Engelen escreveu:
I asked the Scribus guys what their plans are regarding C++11. They had not thought about it much, but I got a very interesting reply, that is relevant for us too. Please read below.
Indeed, all this info is interesting.
And unfortunately, it seems we will have to wait more to use C++11. I'll skip the changes (lambdas) that I wanted to introduce in libdepixelize and finish the features with as little spagheti code as possible. But I'll have to choose between (1) put related code closer or (2) add abstractions that avoid code duplication. T_T
-- Vinícius dos Santos Oliveira https://about.me/vinipsmaker
Hi all, Reporting back after some C++11 experience on Mac and Windows. C++11 is _great_, but...
The C++11 support is pretty great on Mac (Mavericks, clang 3.3), but I did run into a compiler bug. Default argument error for std::map<...>. Not a huge problem, but an annoyance; it is fixed in clang 3.4, to be released soon.
The C++11 support is good, but with problems, on Windows (MinGW TDM GCC 4.8.1). Problems I ran into are: "std::stoi" is not available without modifying a MinGW header. No regexp support with the libstdc++ that comes with MinGW (big bummer, means I cannot run my code with GCC)
In short: let's wait with allowing C++11 dialect and revisit things in a few months, at least until after GCC 4.9 release.
Ciao, Johan
On 21-11-2013 22:22, Johan Engelen wrote:
Hi all, Actually, I think we are safe when not using gcc 4.7.0 or 4.7.1. :-) But it was fixed in 4.7.2. http://stackoverflow.com/questions/16190269/g-always-backward-compatible-wit...
So, good news! What compiler versions do people use? On Windows, Nicolas has managed to upgrade us almost to 4.8.1 (great work), just a few loose ends left.
Cheers, Johan
On 8-11-2013 3:26, Vinícius dos Santos Oliveira wrote:
Em Qui, 2013-11-07 às 23:55 +0100, Johan Engelen escreveu:
I asked the Scribus guys what their plans are regarding C++11. They had not thought about it much, but I got a very interesting reply, that is relevant for us too. Please read below.
Indeed, all this info is interesting.
And unfortunately, it seems we will have to wait more to use C++11. I'll skip the changes (lambdas) that I wanted to introduce in libdepixelize and finish the features with as little spagheti code as possible. But I'll have to choose between (1) put related code closer or (2) add abstractions that avoid code duplication. T_T
-- Vinícius dos Santos Oliveira https://about.me/vinipsmaker
Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clk...
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Johan Engelen
-
Vinícius dos Santos Oliveira