stvis / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Gource requires c++0x? #197

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Does gource require a c++0x compiler? When attempting to build using GCC 4.2, 
as included with Xcode 3.2.6 (the latest available on Mac OS X 10.6), the build 
failed because the `-std=gnu++0x` flag is unrecognized. See the build logs here:

https://gist.github.com/mistydemeo/272a977e6fb9e68a47fd

It does build with clang, available on later Xcode and OS X releases.

I checked the gource documentation, which mentions that GCC 4.7 or greater is 
recommended, but doesn't document a specific requirement on a particular GCC 
version or on a particular C++ standard.

Original issue reported on code.google.com by mistyde...@gmail.com on 3 Jun 2013 at 9:02

GoogleCodeExporter commented 8 years ago
Hi.

Yes it does need some c++0x features. It uses -std=gnu++0x because of some 
weird inconsistency with the Mingw GCC on Windows that turns off POSIX support 
if you use -std=c++0x (but that doesn't happen on Linux).

I could change the wording in the INSTALL file to be more specific. How about:

"
Gource requires a GNU compatible C++ compiler that supports c++0x features such 
as 'auto' and the new 'for' loop syntax.

GCC 4.6+ or Clang recommended.
"

Original comment by acaudw...@gmail.com on 3 Jun 2013 at 10:56

GoogleCodeExporter commented 8 years ago
That sounds good, thank you!

For now, we'll disable building gource on Snow Leopard and older, until those 
platforms get a replacement non-Apple GCC.

Original comment by mistyde...@gmail.com on 4 Jun 2013 at 12:44

GoogleCodeExporter commented 8 years ago

Original comment by acaudw...@gmail.com on 5 Jun 2013 at 4:57