comp.lang.ada
 help / color / mirror / Atom feed
From: gisle@apal.ii.uib.no (Gisle S�lensminde)
Subject: Re: C++ with gcc
Date: 2000/03/24
Date: 2000-03-24T00:00:00+00:00	[thread overview]
Message-ID: <slrn8dn2dq.l7c.gisle@apal.ii.uib.no> (raw)
In-Reply-To: 38DB7762.90530BAE@limsi.fr

In article <38DB7762.90530BAE@limsi.fr>, machrouh Youssef wrote:
>I try to compile C++ programs with the gcc version coming with the gnat
>compiler (3.12p).
>
>While compilation seems to work well, I got errors during linking.
>When I compile the following program:
>
>#include <iostream.h>
>
>void main()
>{
>
>  cout<<"Quel est le prix HT ? : ";
>
>}

Since GNAT patches the gcc backend, and the impact on the c++ frontend
is untested, so it's recomended to have seperate installations of 
Ada and C++. Another reason to have two install two compilers, is that
GNAT is based on gcc 2.8.1 backend, but the latest version of g++ 
is based on gcc 2.95. The newer versions of g++ is much closer to the
standard than the C++ frontend of gcc 2.8.1. 

Besides from that it looks like you not have compiled the standard c++
library, or put it in the wrong place. I see you use mingwin on the
windows platform, and I have no experience in compiling gcc on windows,
so I can't help you there. 



--
Gisle S�lensminde ( gisle@ii.uib.no )   

ln -s /dev/null ~/.netscape/cookies




  reply	other threads:[~2000-03-24  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-24  0:00 C++ with gcc machrouh Youssef
2000-03-24  0:00 ` Gisle S�lensminde [this message]
2000-03-24  0:00 ` Robert Dewar
replies disabled

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