[xsd-users] pthread issues when compiling libxsd-frontend

Gavin Davies gavin.s.davies at gmail.com
Sun Jun 12 15:38:56 EDT 2011


Hi Boris,

That did indeed help. Thank you!

Gavin

On Sun, Jun 12, 2011 at 6:49 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Gavin,
>
> Gavin Davies <gavin.s.davies at gmail.com> writes:
>
> > Hi All,
> >
> > Please help. I have been trying to install xsd from source and have
> followed
> > the build instructions using a pre-installed boost and xerces_c and
> > specifying their src_root and out_root in the interactive configuration.
> > I receive the following error when building libxsd-frontend:
> >
> > [...]
> >
> > From what I gather it is because I am may be missing a link to the
> pthread
> > library but I can't seem to link this anywhere in the build of
> > libxsd-frontend.
>
> Right, because you are linking to the static Xerces-C++ library which
> was configured with threads enabled, any library/executable that links
> to Xerces-C++ will also need to explicitly link to the pthread library.
>
> The way to do this is to enter -lpthread when asked for extra C++
> libraries during the configuration phase. If you don't want to
> reconfigure everything, you can just edit the
> build/cxx/configuration-dynamic.make and add this value to the
> cxx_extra_libs variable.
>
> Boris
>


More information about the xsd-users mailing list