Re: Re: Convert GCC under Cygwin Name Mangling to VC++ Name Mangling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 14:20 13.12.2006 +0100, Fabian Canedese wrote:
>At 14:06 13.12.2006 +0100, Francisco J. Royo Santas wrote:
>>Hello,
>>
>>I have compiled a .dll file with GCC under Cygwin and I need to access it from
>>Visual Studio. The problem is the name mangling, VS tries to find a "VS-style"
>>name and it is different in the DLL. The name in the dll (for the function
>>FreeLingAnalyzer::initialize(char * *)) is
>>"__ZN16FreeLingAnalyzer10initializeEPPc" and VS tries to link to
>>"?initialize@FreeLingAnalyzer@@QAEXPAPAD@Z". Is there a tool to convert or a
>>way to force GCC to create MS-style names?
>
>Shouldn't that work better if you use extern "C" {..} around the declarations?
>
>bye  Fabi
>
It doesn't work, I tried to use extern "C" in the class definition .h and the
procedures un .cc and it does not change the mangled names :( It belongs to a
class that would be needed as it is.

thanks and g'bye


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux