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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4e3b77ba64929e23 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!wanadoo.fr!not-for-mail From: Guillaume Foliard Newsgroups: comp.lang.ada Subject: Re: Mixed Ada and C++ Programs Date: Tue, 17 Aug 2004 20:42:07 +0200 Organization: Old Europe Message-ID: References: NNTP-Posting-Host: aputeaux-151-1-6-82.w82-120.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news-reader5.wanadoo.fr 1092768122 31622 82.120.180.82 (17 Aug 2004 18:42:02 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 17 Aug 2004 18:42:02 GMT User-Agent: KNode/0.7.90 Xref: g2news1.google.com comp.lang.ada:2787 Date: 2004-08-17T18:42:02+00:00 List-Id: Jean-Marc Bourguet wrote: > "Harry Overs" writes: > >> I have an Ada program which has a C++ interface to it, although I can get >> the program to compile and run ok the problem that I have is that when I >> change the C++ interface to use any system files, i.e. fstream.h, >> iostream.h, I get unresolved extern errors when I try to link it >> (#including stdio and some other files work ok). >> >> Does anyone know what I am doing wrong? > > Forgetting the C++ libraries in the link? Moreover, if you are using GNAT do not forget to add the following to the gnatmake list of options : --LINK=c++