I\'m compiling a c++ program using the command line
g++ -c prog.cc -std=c++11 -march=native -fPIC -fopenmp
and then try to make a shared ob
You just need to make the default visibility hidden for your base class(handle_base). You can do this by -
#define VISIBILITY __attribute__((visibility("hidden"))) class VISIBILITY handle_base;