From: Matej U. <mat...@gm...> - 2006-09-12 18:21:43
|
On Tue, 2006-09-12 at 10:00 -0300, Gonzalo Arana wrote: > Try running cvs update & recompiling. > I had to add "template<>" (I am completely clueless why) at the > beggining of DECLARE_PLUGIN macro lines. > Many thanks for the prompt feedback! Oh, yeah, I have forgotten to tell ya: The correct way of defining static members is like this: The next two lines should be in Plugin.h: template<class C> std::map<std::string,C*> Pluggable<C>::_map; template<class C> C* Pluggable<C>::_selected = NULL; g++ is responsible for anything else. <-- There is no need for additional defines. All above is defined in ANSI C++ (14.5.1.3). |