Alexander,
the references are to Sablotron's classes and templates so the compiler
should find them. Perhaps it's a problem your version of the gcc has
with templates?
We plan to stop using templates (for portability reasons) but the change
will take some time.
You could try to use a newer version of gcc. If that doesn't work, I
hope that someone with a better knowledge of Solaris than I have will
help.
Regards,
Tom Kaiser
Alexander Mayrhofer wrote:
>
> Hi all!
>
> I'm trying to compile Sablotron (great product, btw!) on Solaris 2.6,
> gcc2.7.2, gnu binutils, and i'm running into following non-resolving
> classes/methods when linking the example binary "sabcmd":
>
> $ g++ -fhandle-exceptions -o sabcmd ../sabcmd/sabcmd.c libsablot.so.0.3
> ../../lib/libxmlparse.so.1.0 ../../lib/libxmltok.so.1.0
> libsablot.so.0.3: undefined reference to `List<DataLineItem *>::~List(void)'
> libsablot.so.0.3: undefined reference to `PList<StrStr *>::PList(int)'
> libsablot.so.0.3: undefined reference to `PList<DataLineItem *>::PList(int)'
> libsablot.so.0.3: undefined reference to `List<StrStr *>::~List(void)'
> make: *** [sabcmdline] Error 1
>
> I'm quite sure that that's not related to Sablotron, but perhaps somebody else
> alread ran into this? Am i missing standard c++ libraries which contain that
> classes?
>
> Any help appreciated!
>
> thanks
>
> Alexander Mayrhofer