comp.lang.ada
 help / color / mirror / Atom feed
From: gisle@apal.ii.uib.no (Gisle S�lensminde)
Subject: Re: Ada and C++; Any Gurus Out There?
Date: 1999/06/02
Date: 1999-06-02T00:00:00+00:00	[thread overview]
Message-ID: <slrn7lb86u.634.gisle@apal.ii.uib.no> (raw)
In-Reply-To: XE953.4227$y6.2357136@WReNphoon3

>Now, I know one can declare the C++ function as 'extern "C" blah blah' but
>this really is a work around and not a
>solution.  I am looking for a way to simply link Ada and C++ object files
>such that no modifcations need to
>be made to the C++ code.  

It is not possible to link C++ to other languages without using extern C
in a portable way. There is no standard mangeling scheme, and it may
vary from compiler to compiler, even on the same OS. Extern C in C++
is in many ways similar to pragma import/export in Ada, since both
specifies a different linker convention from the default for the language.

Using 'extern C' is not a workaround, but the intended solution.

--
Gisle S�lensminde ( gisle@ii.uib.no )   





  parent reply	other threads:[~1999-06-02  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-02  0:00 Ada and C++; Any Gurus Out There? Decker, Christian R
1999-06-02  0:00 ` Robert Dewar
1999-06-02  0:00 ` Gisle S�lensminde [this message]
1999-06-03  0:00   ` Robert Dewar
1999-06-03  0:00     ` Gisle S�lensminde
1999-06-04  0:00       ` Robert Dewar
1999-06-02  0:00 ` Tucker Taft
replies disabled

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