From dannyc22192 at gmail.com Sun Jun 24 01:23:27 2018 From: dannyc22192 at gmail.com (Danny C) Date: Sun, 24 Jun 2018 10:53:27 +0530 Subject: [C++-sig] How to expose only what I want in Boost python Message-ID: Hi, I am very new to boost python. I am exposing a C++ library using boost python. I want to expose some constructors and some interfaces. This may come as very trivial but I don't want to expose my complete class to the python module, only defs for the interfaces I require. But if i don't expose everything I get linker errors stating that some members are undeclared. Is there a workaround for this. Here's what my class looks like: A.h/A.cpp class A //exported class using dlls { .... } BPWrapper.cpp class BPWrapper //Wrapper class holding an instance to A { private: boost::shared_ptr _mA; public: BPWrapper(args) interface1(...) interface2(...) interface3(...) interface4(...) } So when I compile BPWrapper I get linker errors for class A which say the members of A are undeclared for which the definition I've already provided in include path. -------------- next part -------------- An HTML attachment was scrubbed... URL: