Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWIG: No module name specified using %module or -module

Tags:

c++

swig

I am using SWIG to generate some language bindings to some C++ code. I am getting this warning at the console:

No module name specified using %module or -module

The warning is self explanatory, but is it something I should worry about?

like image 710
Homunculus Reticulli Avatar asked May 28 '26 13:05

Homunculus Reticulli


1 Answers

Yes, it is something to worry about. It is an error not a warning and the generated wrapper file was not created (at least not with the SWIG 2.0.8 version I tested with). Simply add %module modulename to the top of your SWIG .i file.

like image 169
Mark Tolonen Avatar answered May 31 '26 04:05

Mark Tolonen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!