> As Aaron pointed out C is possible. I made some attempts to integrate
> some C++ code with POP11 a while ago. I don't think POP deals with the
> way C++ classes are named inside the libraries. The standard way around
> this is to write C wrappers of the C++:
There are 2 complications with C++. One is that C++ supports overloading
of user-defined functions. Given that the ordinary linker is used,
it is then necessary for C++ to invent distinct link-names
for two functions that have the same user-defined name but
different argument types. Last time I looked, these might not
even be portable across different versions of C++, tho' no doubt
that's been sorted. The other problem is that methods may take an extra
parameter, providing "this".
Robin.
|