"tchernobog" <[EMAIL PROTECTED]> writes:

> So, how can i get the symbols for Singleton<SomeClass> to be marked "T"
> (global exported symbols into the text section) in libbackend.so and
> "U" (undefined) in the main executable and modules?

Remove the definition of Singleton<T>::get_instance() from the
body of the class in Singleton.h header, and put it into a separate
Singleton.tc file.

Then '#include "Singleton.tc"' only into the compilation units
where you want the Singleton<SomeClass>::get_instance() to be
defined.

After that, you'll get a 'W' in libbackend.so, and a 'U' everywhere
else, which should be good enough.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to