[fpc-pascal] C++ Name Mangling

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Mar 14 20:28:00 CET 2007


Does anyone know a good way to find out the name of a exported method on C++

I am trying to link to C++ from Symbian OS. The method is declared like this:

class User : public UserHeap
    IMPORT_C static TInt InfoPrint(const TDesC& aDes);

Normally I would guess it´s:


Or something similar. But it doesn´t work.

Any other ideas? I tryed to open the .lib file with a HEX editor to
search for _ZN, or other strings that would reveal the mangled name,
but it was futile.

thanks a lot,


PS: My God, it´s a headache to link to c++

More information about the fpc-pascal mailing list