From: eth <et...@ho...> - 2008-01-23 21:56:38
|
I'm using SWIG to wrap a fairly complex C API in C# I created different swig interface files one for each module I used %rename extensively to make the names conform to C# standard naming conventions all the generated wrapper code is compiled into a single DLL that the intermediate class use for P/Invoke The problem I'm having is that I can't always generate the single DLL above due to functions name conflicts. It seems that the native wrapper function that swig generates uses the name after applying the %rename feature instead of the original C name(It just adds CSHARP_ prefix to the oveloaded name). This is not a problem for java since the name follows JNI rules and is always unique. Is there a way around this problem in C#. In other words can I have the native wrapper name use the original C name and the generated C# functions names use the name specified by %rename (exactly as is the case for Java)? I really appreciate any feedback Eth. -- View this message in context: http://www.nabble.com/C--native-wrapper-function-names-tp15053551p15053551.html Sent from the swig-user mailing list archive at Nabble.com. |