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,40e9a41ba17c8e4,start X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,40e9a41ba17c8e4,start X-Google-Attributes: gid109fba,public From: Hing Chan Subject: Interfacing between Ada, C, C++ Date: 1996/08/05 Message-ID: <32068293.7831@logicon.com>#1/1 X-Deja-AN: 172339933 references: cc: hchan@logicon.com content-type: text/plain; charset=us-ascii organization: Logicon, Inc. mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c++ x-mailer: Mozilla 3.0b5aGold (X11; I; SunOS 5.4 sun4m) Date: 1996-08-05T00:00:00+00:00 List-Id: Hi, I am investigating the interface problem between C++ and Ada. We have legacy programs written in Ada that needs to be modified to use Orbix proxy classes (C++). The bulk of the code will remain in Ada except the part of the code that uses the ORB. We have success calling C functions from Ada by using the Interface Pragma for C and calling C main function from the top level Ada procedure. However, we don't know how to deal with C++. Specifically, C++ compiler changes the name of C++ functions (name mangling). A workaround for this is to write a C wrapper around C++ functions and compile the C and C++ modules with the same compiler. However, other issues that remain and we have no answer for are: Will Ada tasks (threads) interface with C++/C threads? Will Ada I/O conflicts with C++ I/O? Will Ada exceptions conflict with C++ exceptions? Ada elaboration (constructor) vs. C++ constructors/destructors? Anyone has any experience with interfacing Ada and C++ or answers to any of the above questions, please email me directly (I don't read newsgroup too often). My email address is hchan@logicon.com. Thanks In advance. -- Hing Chan Logicon Inc. Member of Technical Staff 222 W. 6th St. DAOC P.O. Box 471 (310) 831-0611 x2366 San Pedro, CA 90733-0471 fax: (310) 521-2673 hchan@logicon.com