Compiling a SWIG Python wrapper for a static library?
问题 This is a noob question. I'm trying to learn how to use SWIG to make a python interface for a C++ library. The library is a proprietary 3rd party library; it comes to me in the form of a header file (foo.h) and a static archive (libfoo.a). To simplify matters, I've cooked up an example which I think has the same pathology. Same error messages anyways. /* foo.hpp */ class TC { public: TC(); int i; private: }; For reference, here's foo.c. I only have the header and archive files for the real