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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a94da93d0d7bdebb X-Google-Attributes: gid103376,public From: gisle@apal.ii.uib.no (Gisle S�lensminde) Subject: Re: C++ with gcc Date: 2000/03/24 Message-ID: #1/1 X-Deja-AN: 601790337 Content-Transfer-Encoding: 8bit References: <38DB7762.90530BAE@limsi.fr> Organization: University of Bergen, Norway Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-03-24T00:00:00+00:00 List-Id: 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 > >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