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: elwood@osc.u-net.com (Phil Brereton) Subject: Re: gnat-3_10p1-nt and C++ ? Date: 1998/01/02 Message-ID: <34acddaf.6456942@news.u-net.com>#1/1 X-Deja-AN: 312104016 References: <34a9aa01.38963143@news.u-net.com> <68dlab$sci$1@faatcrl.faa.gov> Organization: (Posted Via) U-NET Ltd. Newsgroups: comp.lang.ada Date: 1998-01-02T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) wrote: > >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). > Thanks for the clarification - I've installed the C++ compiler and library, the compiler seems to work ok, but the linker keeps giving "undefined reference to 'cout' " messages. I think I'll take your advice and try a separate program! Phil