You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Suchit Batheja <su...@ittc.ku.edu> on 2003/07/29 21:28:54 UTC
Linking error
Hi,
I get this error & have no clue what I am doing wrong. I have set all
the environment variables.
[suchit]$ g++ test.cpp -I/usr/local/include -L/usr/local/lib -lxerces-c
/usr/local/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_destroy'
/usr/local/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_settype'
/usr/local/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_init'
collect2: ld returned 1 exit status
Any suggestions.
Thanks,
Suchit
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
SV:Linking error
Posted by Gröndal Daniel <da...@rfv.sfa.se>.
Hi!
I don't really know how to solve this, but perhaps you can try to link with the
threads library (named something like libpthread.so) explicitely and see if
anything changes?
//daniel
Suchit Batheja (2003-07-29 21:28):
>Hi,
>
> I get this error & have no clue what I am doing wrong. I have set all
>the environment variables.
>
>[suchit]$ g++ test.cpp -I/usr/local/include -L/usr/local/lib -lxerces-c
>/usr/local/lib/libxerces-c.so: undefined reference to
`pthread_mutexattr_destroy'
>/usr/local/lib/libxerces-c.so: undefined reference to
`pthread_mutexattr_settype'
>/usr/local/lib/libxerces-c.so: undefined reference to `pthread_mutexattr_init'
>collect2: ld returned 1 exit status
>
>Any suggestions.
>
>Thanks,
>Suchit
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
------------------------------------------------------------------
RFV Data E-post: daniel.grondal@rfv.sfa.se
Utvecklingsenheten/Grupp 2 Tfn: 060-187126
S.a Järnvägsgatan 41 Mobil: 070-3016517
851 93 Sundsvall Fax: 060-147870
------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org