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-7-bit X-Google-Thread: 103376,4a09c93555e06e13 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: gnat-3_10p1-nt and C++ ? Date: 1998/01/01 Message-ID: #1/1 X-Deja-AN: 311875940 References: <34a9aa01.38963143@news.u-net.com> <68dlab$sci$1@faatcrl.faa.gov> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 883661628 21550 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-01-01T00:00:00+00:00 List-Id: Phil Brereton wrote in message <34a9aa01.38963143@news.u-net.com>... >I have just installed gnat and found out that it can compile C, I've >been told that to compile C++ I need cc1plus.exe and the C++ library. >How do I install these correctly? Any advice will be gratefully >received. >Best wishes for the New Year, >Phil Just so the picture is clear, GNAT cannot compile C, it is an Ada 95 compiler! However, it is part of the GCC system, which is a multi-language compiler. The standard distribution of GCC made with GNAT includes the C compiler, but does not include the C++ compiler, which must be separately obtained. The easiest thing is to obtain g++ separately and install it as a completely separate program, but if you know what you are doing, you can merge the two distribtions together to form a single unified gcc that can compile C, Ada 95 and C++ (as well as Chill, Fortran 77 etc etc if you install these as well).