how to create a shared object with high maintainability?
问题 I try to create a shared object for my C++ project with the purpose: every time I want to bring a new class, I recompile shared object only. below is test code: test.h : #if !defined(_TEST_) #define _TEST_ #include <string> #include <memory> class Test { private: public: Test() { } ~Test() { } virtual void show(const std::string &) = 0; }; #ifdef __cplusplus extern "C" { #endif // std::shared_ptr<Test> getObject(); #ifdef __cplusplus } #endif #endif // _TEST_ getObject.cpp : class TestSo