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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,31c633ee5da73ed9 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ada and C++; Any Gurus Out There? Date: 1999/06/04 Message-ID: <7j7dc4$jt$1@nnrp1.deja.com>#1/1 X-Deja-AN: 485481862 References: <7j4lua$2rs$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri Jun 04 02:24:12 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-06-04T00:00:00+00:00 List-Id: In article , gisle@apal.ii.uib.no (Gisle S�lensminde) wrote: > so 'extern C' is neccesary to make C linkage, and not a > workaround. > > -- > Gisle S�lensminde ( gisle@ii.uib.no ) Fine, but this is comp.lang.ada, not comp.lang.c, so we are interested in interfacing from C++ to Ada (C is not in necessarily in sight unless we drag it in). And the answer is no, it is not necessary to use extern C in interfacing between Ada 95 and C++ if your implementation (like GNAT) supports interfacing directly to C++. See the example of this interfacing that comes with the GNAT distribution. Robert Dewar Ada Core Technologies Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.