------- Comment #3 from hlprasu at gmail dot com 2010-07-07 09:30 ------- Subject: Re: Static members not initialised in explicit template instances of library
But, as I know, no where is it mentioned to be necessary for static member initialisation. Why should the compiler allow for such a subtle error? Or is this documented somewhere? Besides this issue, I've not faced any other problem in using shared library by not using -fPIC. Could you please point out the necessary implications that I am missing here? On 7 July 2010 14:48, redi at gcc dot gnu dot org <gcc-bugzi...@gcc.gnu.org> wrote: > > > ------- Comment #2 from redi at gcc dot gnu dot org  2010-07-07 09:18 ------- > You need to use -fPIC for a shared object, so the version without that is not > valid. > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44855