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-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!v37g2000prg.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: GNAT 2009 and C++ Date: Fri, 2 Oct 2009 09:30:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <070994e7-768d-45ca-a9ec-9b50aa7ebffc@v37g2000prg.googlegroups.com> References: NNTP-Posting-Host: 149.32.224.33 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254501018 17929 127.0.0.1 (2 Oct 2009 16:30:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 2 Oct 2009 16:30:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v37g2000prg.googlegroups.com; posting-host=149.32.224.33; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8575 Date: 2009-10-02T09:30:18-07:00 List-Id: 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++ --disable- nls --wit hout-libiconv-prefix --disable-libada --enable-checking=3Drelease -- enable-threads =3Dwin32 --disable-sjlj-exceptions --with- bugurl=3DURL:mailto:report@adacore.com Thread model: win32 gcc version 4.3.4 20090511 for GNAT GPL 2009 (20090511) (GCC) Anh Vo