Re: [fpc-pascal] C++ Name Mangling

2007-03-15 Thread Matt Emson
>> Does Symbian use PE? > Yes, Symbian uses PE. Symbian : EPOC 32 by another name ;-) > Ummm ... I would like to avoid that, but it seams that it´s easier to > use a c wrapper in fact. The effort is larger, but you really do get a more stable and portable solution. It doesn't tie you to a specif

Re: [fpc-pascal] C++ Name Mangling

2007-03-15 Thread Felipe Monteiro de Carvalho
One thing that just came to me is writting a c wrapper, but don´t put it on a DLL. Instead compile it into a object files, and link them. This way I have the portability of a c wrapper, but I don´t need external DLLs =) -- Felipe Monteiro de Carvalho _

Re: [fpc-pascal] C++ Name Mangling

2007-03-15 Thread Felipe Monteiro de Carvalho
On 3/15/07, Matt Emson <[EMAIL PROTECTED]> wrote: Does Symbian use PE? Yes, Symbian uses PE. You might not like what I'm about to say, but writing a C wrapper around the C++ and then linking the Pascal code to the C wrapper is a far, far safer way to get consistent results. Ummm ... I would

Re: [fpc-pascal] C++ Name Mangling

2007-03-15 Thread Matt Emson
> One thing that confuses me is: Shouldn´t the mangled name be written > somewhat on the .LIB file? Not if the linker understands how to mangle names, no. Also depends on what the LIB file is used for, no? ELF would not need it, PE would require it, and PEF would use is only when debugging - those

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread Felipe Monteiro de Carvalho
Ok folks, I made this question on the Symbian forum and got an answer =) One can use the Linker to create a dump file with all exported names. The command is the following: mwldsym2 -S -show names,verbose C:\Programas\Symbian\UIQ3SDK\epoc32\release\winscw\udeb\euser.lib And the function I was

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread Felipe Monteiro de Carvalho
On 3/14/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: You are underestimating the mess. With what version of GCC would it be compatible? With the one that comes on the SDK =) I think it´s 4 One thing that confuses me is: Shouldn´t the mangled name be written somewhat on the .LIB file? If it i

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread Daniël Mantione
Op Wed, 14 Mar 2007, schreef Felipe Monteiro de Carvalho: > On 3/14/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: > > Not that C++ name mangling differs per compiler and per compiler version. > > Depending on what compiler the Symbian SDK uses, Valgrind code migth not > > be useable at all. >

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread Felipe Monteiro de Carvalho
On 3/14/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: Not that C++ name mangling differs per compiler and per compiler version. Depending on what compiler the Symbian SDK uses, Valgrind code migth not be useable at all. The SDK uses CodeWarrior C++ for the emulator. With some lucky it is compa

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread Daniël Mantione
Op Wed, 14 Mar 2007, schreef Felipe Monteiro de Carvalho: > On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Try the demangling code from valgrind... > > I took a look at valgrind website, and it seams to only work on Linux. > Is that right? > > The Symbian SDK only works on Window

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread Felipe Monteiro de Carvalho
On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Try the demangling code from valgrind... I took a look at valgrind website, and it seams to only work on Linux. Is that right? The Symbian SDK only works on Windows, so they cannot be utilized together. thanks, -- Felipe Monteiro de Car

Re: [fpc-pascal] C++ Name Mangling

2007-03-14 Thread leslie . polzer
On Wed, Mar 14, 2007 at 08:28:00PM +0100, Felipe Monteiro de Carvalho wrote: > 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. Try the demangling code from valgrind... Leslie -- NE