Hi all, Im new to SWIG. Right now I'm deciding whether to use SWIG or
CLI/C++ for wrapping a rather large C++ API into .NET (C#)
Im using SWIG 2.0.4 and Visual Studio 2010.
I stumbled on some quite irritating hurdles immediately.
I have tried to illustrate the problem in the attached code, it should
build if you have swig.exe in the path.
I have basically two namespace's A and B (in reality I have a lot
more, these are just very reduced examples to show two of my
problems).
One thing that sticks out is that there are two classes with the same
name that exist both in namespace A and B.
My problems so far:
#1 the init function should be called as: A.init(); NOT A.A.init();
#2 A.Material does not exist in the generated binding code. Only B.Material
Command to generate binding:
swig -outdir generated -c++ -v -csharp -namespace A -Wall a.i
swig -outdir generated -c++ -v -csharp -namespace B -Wall b.i
runme.cs is using the generated code.
--
http://www.swig.org/Doc2.0/SWIGPlus.html#SWIGPlus_namespaces
William
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Swig-user mailing list
Swig...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user