I have looked at this question but it doesn't seem to help my case.
I have a C++ library that I am wrapping parts of using SWIG (unfortunately swig 2.0). This library performs some socket communications with a remote server and I need to make use of it from Python. I am finally able to compile and link a .so file but during my testing, when importing the generated module, I get the following:
...
_mod = imp.load_module('_YBB', fp, pathname, description)
ImportError: ./_YBB.so: undefined symbol: _Z11IPV4Gatewayhhhh
This undefined symbol equates to:
IPV4Gateway(unsigned char, unsigned char, unsigned char, unsigned char)
This is frustrating as I don't have a call to this function anywhere in the wrapped library. So it must be in the underlying socket library that I am calling.
Does anyone know what I have to do to clear up this undefined symbol?