comp.lang.ada
 help / color / mirror / Atom feed
From: Guillaume Foliard <guifo@wanadoo.fr>
Subject: Re: Mixed Ada and C++ Programs
Date: Tue, 17 Aug 2004 20:42:07 +0200
Date: 2004-08-17T18:42:02+00:00	[thread overview]
Message-ID: <cftjhq$us6$1@news-reader5.wanadoo.fr> (raw)
In-Reply-To: pxb1xi6atuh.fsf@news.bourguet.org

Jean-Marc Bourguet wrote:

> "Harry Overs" <hovers@dera.gov.uk> 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++



      reply	other threads:[~2004-08-17 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17 11:12 Mixed Ada and C++ Programs Harry Overs
2004-08-17 11:26 ` Jean-Marc Bourguet
2004-08-17 18:42   ` Guillaume Foliard [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox