Trivial once I figured out where to look - I wasn't linking in libgcc :-(.
Geraint Edwards wrote:
> I have built my first XPCOM simple component in C++ and with my own
> build of Moz 1.0 it works a treat :-).
>
> I then copied the lib and xpt files to the components directory of the
> precompiled release {Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0)
> Gecko/20020529} and run regxpcom I get the following error message:
>
> **************************************************
> nsNativeComponentLoader:
> SelfRegisterDll(/second/Mozilla1.0/mozilla/components/libxpcomgwe.so)
> Load FAILED with error:
> /second/Mozilla1.0/mozilla/components/libxpcomgwe.so: undefined symbol:
> __pure_virtual
> **************************************************
>
> I get the same error with the xpcom sample provided as part of the
> release source tarball.
>
> Any insights would be very welcome!
>
> Am I missing a library linkage? Do I need to disable unused virtual
> methods? etc.
>
> thanks
>
> Geraint
>
> p.s. If its relevant I am using gcc 2.95.2 and Linux Mandrake release
> 7.0/Kernel 2.2.14-15mdk
>