comp.lang.ada
 help / color / mirror / Atom feed
From: Gene <gene.ressler@gmail.com>
Subject: Re: GNAT 2009 and C++
Date: Sun, 4 Oct 2009 12:53:55 -0700 (PDT)
Date: 2009-10-04T12:53:55-07:00	[thread overview]
Message-ID: <cea2e166-7f87-4d72-848c-144fa2382ce9@k26g2000vbp.googlegroups.com> (raw)
In-Reply-To: 070994e7-768d-45ca-a9ec-9b50aa7ebffc@v37g2000prg.googlegroups.com

On Oct 2, 12:30 pm, Anh Vo <anhvofrc...@gmail.com> wrote:
> On Oct 2, 12:16 am, Maciej Sobczak <see.my.homep...@gmail.com> 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=/gnat-prefix --with-build-time-tools=/pristina.b/gnatmail/
> release-gpl/bu
> ild-pristina/obj --with-gmp=/pristina.b/gnatmail/release-gpl/build-
> pristina/libm
> pfr/install --with-mpfr=/pristina.b/gnatmail/release-gpl/build-
> pristina/libmpfr/
> install --build=i686-pc-mingw32 --enable-languages=c,ada,c++ --disable-
> nls --wit
> hout-libiconv-prefix --disable-libada --enable-checking=release --
> enable-threads
> =win32 --disable-sjlj-exceptions --with-
> bugurl=URL: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.




      parent reply	other threads:[~2009-10-04 19:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02  7:16 GNAT 2009 and C++ Maciej Sobczak
2009-10-02 16:30 ` Anh Vo
2009-10-02 21:15   ` Maciej Sobczak
2009-10-03  8:09   ` Dirk Heinrichs
2009-10-04 19:53   ` Gene [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox