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/03 Message-ID: <34ae93e6.21261189@betanews.mcmail.com>#1/1 X-Deja-AN: 312475503 X-NNTP-Posting-Host: asn13-196.mcmail.com References: <34acddaf.6456942@news.u-net.com> <883807845.4snx@jvdsys.nextjk.stuyts.nl> Newsgroups: comp.lang.ada Date: 1998-01-03T00:00:00+00:00 List-Id: On Sat, 03 Jan 98 06:10:45 GMT, jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) wrote: >In article <34acddaf.6456942@news.u-net.com> elwood@osc.u-net.com writes: > >>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! > >If you installed the compiler according to the instructions on my >homepage this should work, as I used this installation to compile some >c++ code which I wanted to use from Ada. > >Of course you did not forget to link in the standard (-lstdc++) or gcc >(lg++) libraries when compiling c++ code :-) If you want to use the c++ >compiler, you are supposed to know how to use it! > Ok, I admit my ignorance - thanks to your helpful instructions I've now got everything working. (C++ was not my main interest but reading that it could be incorporated into Gnat, I thought it would be good to add the capability.) Thanks again, Phil