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