This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Convert GCC under Cygwin Name Mangling to VC++ Name Mangling
- From: "Francisco J. Royo Santas" <497328 at unizar dot es>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Dec 2006 14:06:29 +0100
- Subject: Convert GCC under Cygwin Name Mangling to VC++ Name Mangling
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?
Thank you very much