"Noah Roberts" <ro**********@gmail.comwrote in message
news:11**********************@k58g2000hse.googlegr oups.com...
>
Peter Olcott wrote:
>"Ian Collins" <ia******@hotmail.comwrote in message
news:50*************@mid.individual.net...
Peter Olcott wrote:
From what I understand data alignment is not one of the things that has
been
standardized. If this is true, then how are libraries constructed such
that
one
vendor's compiler can directly access aggregate data types such as
<struct>
where these types were compiled using another vendor's compiler?
Probably the only safe way is to keep types opaque and provide the
public interface as extern "C" functions.
--
Ian Collins.
That is what I was thinking. This eliminates alignment differences and
differences in the derivation of the underlying naming conventions.
Oh, I think you're looking for specs like Corba or COM.
For my purposes the prior suggestion will probably be optimal. I always try to
go with the simplest possible solution that completely solves the problem. Since
I am interfacing between C++ and a language following to "C" calling
conventions, the prior answer should work the best, and be entirely sufficient
for my needs.