#include #include namespace std { template class helper {}; template > class myvector {}; //template class list {}; } using namespace std; class Top { public: class Bottom {}; void topfunction1(std::list&) { } std::vector topfunction(std::list&) { return std::vector(); } class Second { public: void topfunction1(std::list&) { } std::vector function(std::list&) { return std::vector(); } }; }; std::vector extfunc1(std::list) {}; std::myvector > extfunc2(std::list) {}; #ifdef __MAKECINT__ //pragma link off all classes; //pragma link off all functions; //pragma link C++ class vector; //pragma link C++ class list; //pragma link C++ class Top; //pragma link C++ class Top::Bottom; //pragma link C++ class Top::Second; //pragma link C++ function extfunc1; //pragma link C++ function extfunc2; #endif