Re: g++ version and -std=c++11 ?
Paul Davis <[email protected]> Wed, 20 Apr 2016 14:07:19 -0400
| Newsgroups | gmane.comp.audio.ardour.devel |
|---|---|
| Message-ID | <CAFa_cKmADZPk0RLgUf3KYm9eDR0XNoRxNEcQCCK321c9fNfsog@mail.gmail.com> |
You might consider running ./waf configure --help which would show --cxx11 as an option already (thanks to rgareus, as ever) On Wed, Apr 20, 2016 at 1:10 AM, Ben Simons <[email protected]> wrote: > :-) Hey Paul > > > thanks for the quick response. > > > ok cool.. Yes, vers 3.5.403 is what's "current" in Gentoo (fyi). > > When a user runs "emerge ardour" that's what installs. > > vers 4.7 is the reason i'm looking to fork from github & compile instead. > > > For what it's worth, I could not successfully compile on linux. > > As per my previous post, it dies at: > > > [ 47/811] cxx: libs/lua/luastate.cc -> build/libs/lua/luastate.cc.1.o > > > > However! this following hack got it Ardour to compile: > > > $ git diff wscript > diff --git a/wscript b/wscript > index 926e6fe..fef8b18 100644 > --- a/wscript > +++ b/wscript > @@ -438,6 +438,13 @@ int main() { return 0; }''', > # determine processor flags via /proc/cpuinfo > # > > + # > + # HACK > + # add cxx_flags.append('-std=c++11') anyway > + # [ben 20Apr16] > + ## cxx_flags.append('-std=c++11') > + compiler_flags.append('-std=c++11') > + > if conf.env['build_target'] != 'i386': > > flag_line = os.popen ("cat /proc/cpuinfo | grep > '^flags'").read()[:-1] > > > > I won't be checking this in. It's just a HACK. I just wanted to see if it > would > > produce a successful compile. It did. It simply added the compile flag > '-std=c++11'. > > > hope that's useful info? > > > cheers, > > ben. > > ------------------------------ > UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any > accompanying attachments may contain confidential information. If you are > not the intended recipient, do not read, use, disseminate, distribute or > copy this message or attachments. If you have received this message in > error, please notify the sender immediately and delete this message. Any > views expressed in this message are those of the individual sender, except > where the sender expressly, and with authority, states them to be the views > of the University of Technology Sydney. Before opening any attachments, > please check them for viruses and defects. Think. Green. Do. Please > consider the environment before printing this email. > > > _______________________________________________ > ardour-dev mailing list > [email protected] > http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org > > _______________________________________________ ardour-dev mailing list [email protected] http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org