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,d44f5f5c83c371ab,start X-Google-Attributes: gid103376,public From: Charlie Gage Subject: Help interfacing Ada and C++ Date: 1997/06/14 Message-ID: <33A28715.1558@codenet.net>#1/1 X-Deja-AN: 248345606 Newsgroups: comp.lang.ada Date: 1997-06-14T00:00:00+00:00 List-Id: 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 in the C++ code and try to use anything like "cout". The Gnat linker complains about an undefined symbol. If I #include 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