From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f4802d93081c75be X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k26g2000vbp.googlegroups.com!not-for-mail From: Gene Newsgroups: comp.lang.ada Subject: Re: GNAT 2009 and C++ Date: Sun, 4 Oct 2009 12:53:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <070994e7-768d-45ca-a9ec-9b50aa7ebffc@v37g2000prg.googlegroups.com> NNTP-Posting-Host: 134.240.200.26 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254686036 23887 127.0.0.1 (4 Oct 2009 19:53:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 4 Oct 2009 19:53:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k26g2000vbp.googlegroups.com; posting-host=134.240.200.26; posting-account=-BkjswoAAACC3NU8b6V8c50JQ2JBOs04 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8582 Date: 2009-10-04T12:53:55-07:00 List-Id: On Oct 2, 12:30=A0pm, Anh Vo wrote: > On Oct 2, 12:16=A0am, Maciej Sobczak wrote: > > > > > > > The GNAT GPL 2009 from the Libre site does not seem to include the g++ > > compiler, only gcc is provided. As a result it is not possible to link > > a complete program from components written in both Ada and C++. > > Well, at least this is not possible on Max OS X, where after setting > > up the GNAT 2009 environment the following commands: > > > $ gcc --version > > $ g++ --version > > > give different numbers (the first comes from the GNAT distribution and > > overrides the standard compiler and the other one is still the > > standard system version). > > > The distribution from macada.org contains both g++ and gcc compilers > > and the above problem does not appear. > > > Do other GNAT 2009 users consider it to be a problem? > > > If yes, would it be possible to include a consistent C++ compiler in > > the GNAT distribution as well? > > (this is a question to AdaCore, of course ;-) ) > > I got exact the same version on both Windows(MinGW) and Red Hat. One > interesting note is that the result of 'gcc --version' command is not > exact the same as 'gcc -v' command. In fact, when using command g++ -- > version, the result is: > > $ g++ --version > g++.exe (GCC) 4.3.4 20090511 for GNAT GPL 2009 (20090511) > Copyright (C) 2008 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > See your AdaCore support agreement for details of warranty and > support. > If you do not have a current support agreement, then there is > absolutely > no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > However, if command 'g++ -v' is used, the result is quite different as > shown: > > $ g++ -v > Using built-in specs. > Target: i686-pc-mingw32 > Configured with: /pristina.b/gnatmail/release-gpl/build-pristina/src/ > configure - > -prefix=3D/gnat-prefix --with-build-time-tools=3D/pristina.b/gnatmail/ > release-gpl/bu > ild-pristina/obj --with-gmp=3D/pristina.b/gnatmail/release-gpl/build- > pristina/libm > pfr/install --with-mpfr=3D/pristina.b/gnatmail/release-gpl/build- > pristina/libmpfr/ > install --build=3Di686-pc-mingw32 --enable-languages=3Dc,ada,c++ --disabl= e- > nls --wit > hout-libiconv-prefix --disable-libada --enable-checking=3Drelease -- > enable-threads > =3Dwin32 --disable-sjlj-exceptions --with- > bugurl=3DURL:mailto:rep...@adacore.com > Thread model: win32 > gcc version 4.3.4 20090511 for GNAT GPL 2009 (20090511) (GCC) > -v is the short version of --verbose , not --version.