comp.lang.ada
 help / color / mirror / Atom feed
From: Charlie Gage <cgage@codenet.net>
Subject: Help interfacing Ada and C++
Date: 1997/06/14
Date: 1997-06-14T00:00:00+00:00	[thread overview]
Message-ID: <33A28715.1558@codenet.net> (raw)


Greetings,
I have a need to interface Ada95 (specifically Gnat) with C++ (SPARC),
and am having some difficulty with it.  I have read all the Gnat docs
and everything seems to work OK, except when I #include <iostream.h>
in the C++ code and try to use anything like "cout".  The Gnat linker
complains about an undefined symbol.  If I #include <stdio.h> and use
printf, everything works OK.  Now, however I need to use cout and
other things in the iostream.h and fstream.h.  I have used the
"with Interfaces.CPP" in the Ada code, but it does not seem to make
a difference.  Are there any other libraries that I need to include
when linking with Gnat?  Any help with this, or a pointer to more
information would be greatly appreciated.

Thanks,
Charlie Gage
Email: cgage@codenet.net  or  charles.gage@lmco.com




             reply	other threads:[~1997-06-14  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-14  0:00 Charlie Gage [this message]
1997-06-14  0:00 ` Help interfacing Ada and C++ Robert Dewar
1997-06-15  0:00 ` Jerry van Dijk
1997-06-26  0:00 ` rou271
replies disabled

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