After successfully compiling a Python/C binding with SIP I wanted to do the same thing with Python/C++. For some reason this doesn't work.
Here's the files:
fib.cpp
-----------------------------------------------
Code:
#include "fib.h" int fib1(int n) { if (n <= 0) { return 0; } else if (n <= 2) { return 1;