When C++ obeject is passed to C function

Eljay Love-Jensen eljay@adobe.com
Tue Aug 6 09:53:00 GMT 2002


Hi Vallabha,

Your working sample is brittle, in the sense that it is very dependent upon 
the platform (compiler + OS) implementation details.

My suggestion is a means to allow you to avoid platform dependencies and 
intimate knowledge thereof.

Your alternative would be to become familiar with the underlying 
implementation on 64-bit GCC 3.1, and have #if/#endif blocks in your code 
to handle the differences (or use some other proxy pattern / abstraction 
layer to avoid code "pollution").

I'm not familiar with the underlying implementation schema used on any 
64-bit GCC 3.1.

--Eljay



More information about the Gcc-help mailing list