We are using SWIG 2.0.0 to create API's for both Python and C#. We use the same C++ dll for both, to reduce the number of dll's that we have to test/distribute. Everything works fine until you introduce the %feature(director) MyClass option to the .i files. In this case, when linking the dll's you get a duplication reference definition for the director methods one for each language, as the generated names of the directory don't have the target language names as part of them.
Current work around's are to build 2 dll's or to duplicate (with a different name) classes that require callbacks.
Log in to post a comment.