[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Aug 4 13:48:52 1995 
Subject:Re: Linking C++ and Pop 
From:Robin Popplestone 
Volume-ID:950805.02 

In the past I have looked at this problem. It is harder than linking to C,
for various reasons.
(a) Link names of C++ functions often embody encoded type information to
support overloading. These may not be consistent between implementations of
C++ (or at least were not when I looked).

(b) There is extra gubbins to help map from objects to virtual functions,
which can make it hard to represent C++ objects in POP. Essentially, POP
and C++ are liable to tread on each others toes in a way that POP and C
will not.

Anyway - I tried linking to simple C++ geometric capabilities to do things
like add vectors and failed to get anything to work.  Rewriting the C++
stuff in C proved to be the better option.

We have not tried linking to complex systems like ACIS, but have used IPC
instead.

Robin.