c++ mangling
Domenico Mangieri <domenico <at> wivere.com>
2008-12-02 22:17:27 GMT
Hi
I'm wrapping c++ into c# using visual c++
2008.
For some reason when It creates the dll out of
swig_wrap.cxx the functions get mangled even though in the auto generated file
from swig they are all within extern "C" { }
This makes C# failing when loading the dll as
the auto generated c# code uses the no mangled function names from
swig_wrap.cxx
Anyone faced a similar problem
?
Attached is what dependency walker shows
and this is what present in the c# file
[DllImport("WbWrappers",
EntryPoint="CSharp_iTaskProgress_currentStatus")]
[DllImport("WbWrappers",
EntryPoint="CSharp_new_iTaskProgress")]
[DllImport("WbWrappers",
EntryPoint="CSharp_delete_iTaskProgress")]
[DllImport("WbWrappers",
EntryPoint="CSharp_iTaskProgress_director_connect")]
[DllImport("WbWrappers",
EntryPoint="CSharp_PluginManager_instance")]
[DllImport("WbWrappers",
EntryPoint="CSharp_PluginManager_getLibrary")]
[DllImport("WbWrappers",
EntryPoint="CSharp_PluginManager_ReadFileUsingPlugin__SWIG_0")]
[DllImport("WbWrappers",
EntryPoint="CSharp_PluginManager_ReadFileUsingPlugin__SWIG_1")]
[DllImport("WbWrappers",
EntryPoint="CSharp_new_PluginManager")]
[DllImport("WbWrappers",
EntryPoint="CSharp_delete_PluginManager")]
Domenico.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swig-user mailing list
Swig-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user