On Thu, 16 Jan 2003, Frank Heckenbach wrote:
Frank D. Engel, Jr. wrote:
It should also be pointed out that if C++ objects are being used and the versions are different, then name mangling becomes a concern.
Are the name mangling systems used by GPC and g++ compatable between identical versions of gcc?
In other words, if GPC is built along with g++ from the same gcc source tree, will the objects interact appropriately, or are the differences between the languages simply too much for gcc to handle?
Currently, GPC and C++ objects are not compatible. You need a non-OOP ("C style") interface.
Yes, but think he didn't get that far.
Instead of including .cpp sources in the .pas file, why not compile the .cpp's with "-c" option and then including the resulting .o files on the gpc command line?
Russ