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 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Help interfacing Ada and C++ Date: 1997/06/14 Message-ID: #1/1 X-Deja-AN: 248484208 References: <33A28715.1558@codenet.net> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-06-14T00:00:00+00:00 List-Id: Charlie says < 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.>> YOu need to have all the correct CPP pragmas in your code, not something that is easy to do by hand (for example, you need to know the proper mangled names for all the C++ routines you want to call -- probably you did not do that properly by the sound of it). Try asking this question on that chat@gnat.com list, maybe someone there can help you. We do have at least one customer who has successfully interfaced GNAT and C++ on Solaris. Robert Dewar Ada Core Technologies