-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to install the Python M2Crypto package into a virtualenv on an x86_64 RHEL 6.1 machine. This process invokes swig, which fails with the following error:
$ virtualenv -q --no-site-packages venv
$ pip install -E venv M2Crypto==0.20.2
Downloading/unpacking M2Crypto==0.20.2
Downloading…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have some legacy code I want to port to C#. I cannot modify the C++ code, I just have to make do with what I'm given.
So, the situation. I'm using SwIG, and I came across this function:
void MarshalMe(int iNum, FooClass** ioFooClassArray);
If I ran SWIG over this, it wouldn't know what to do…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I notice that Swig provides a whole host of functions to allow for typecasting objects to their parent classes. However, in C++ one can produce a function like the following:
A * getAnObject()
{
if(someBoolean)
return (A *) new B;
else
return (A *) new C;
}
Where "A" is the parent of…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to work with a Python module that was generated by SWIG. There's a C++ class defined that works like this (simplified):
namespace Foo
{
class Thing
{
public:
Thing();
~Thing();
bool DoSomething(uint32_t x, uint32_t y, uint32_t z, uint32_t *buffer);
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
when generating python wrappers with swig the python wrapper classes in the generated python file do not have an explicit self parameter, for example see below:
class PySwigIterator(_object):
def value(*args): return _spatiotemporalnmf.PySwigIterator_value(*args)
def incr(*args): return…
>>> More