c++ - How to create a wrapper that would work for multiple languages at the same time? -


i have simple c api (n simple functions). want wrap c#, java , python @ same time. how call swig create wrapper multiple languages @ same time?

something this

swig.exe -c++ -csharp -java -namespace bla outdir ./ -o ./blaapiwrapper.cxx blaapi.i

results in swig application crush

assertion failed: !this_, file modules/lang.cxx, line 332  application has requested runtime terminate in unusual way. please contact application's support team more information. 

works fine each language sepratly.

just call multiple times different parameters, 1 java, 1 c# etc..

you need shell script automate that, once create script generates wrapper call script.

that's easiest solution if swig don't allow multiple languages @ 1 go, or if feature present bugged (or if present undocumented , not able use because missing important information).


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -