comp.lang.ada
 help / color / mirror / Atom feed
* Help interfacing Ada and C++
@ 1997-06-14  0:00 Charlie Gage
  1997-06-14  0:00 ` Robert Dewar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Charlie Gage @ 1997-06-14  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-06-26  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-14  0:00 Help interfacing Ada and C++ Charlie Gage
1997-06-14  0:00 ` Robert Dewar
1997-06-15  0:00 ` Jerry van Dijk
1997-06-26  0:00 ` rou271

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