[lazarus] TList and TStringList again...

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Aug 16 12:19:31 EDT 1999




On Mon, 16 Aug 1999, Baeseman, Cliff wrote:

> Michael ,
> 
> can we just call external to reference a C++ lib such as in QT. I just
> assumed we could not because of the name mangling that occurs in compiled
> C++ libs.

You can do that, no problem. If you solve the name mangling by yourself,
I see no problem in it.

The MAIN reason we don't support C++ is not the name mangling; the main reason
is the multiple inheritance.

We are planning to do something like
  TQTClass = cppclass (some,parent,classes)
    Method1
    Method
    end;
But for this the compiler needs to have a notion of multiple inheritance and
the way the VMT's are constructed in C++ This will take some time before it
will be implemented...

> 
> It makes little difference, I am not doing that right now. I am just looking
> at my available options.

I see no problem in what you are doing; in fact the C interface to the QT C++
libs does exactly that: it provides C calls that map to C++ mangled names methods;
So in FPC it should work just as well...

Michael.






More information about the Lazarus mailing list