View Single Post

   
  #2 (permalink)  
Old 01-05-2008, 06:12 AM
Uli Link
 
Posts: n/a
Default Re: Unresolved error in linking pthread function

W schrieb:

> I am getting a strange unresolved external error:
> [Additional object modules and libraries cut for brevity}
>
> /usr/vacpp/bin/cc_r -o CO ... -L... -l... -g -lm -lpthread
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_setkind_np


When the compiler driver is invoked as "cc_r" the compiler and later the
linker appends the libpthread itself. No need to specify it on the
command line or in the Makefile.
It depends on the AIX level, on older releases cc_r linked thread safe
apps against libc_r.a.
There are compatibility invocations cc_r4 and cc_r7 for sources
conforming pre-AIX 4.3 threads model.

--


Uli

(Reply to ulrich <dot> link <domain-delimiter> epost <dot> de)
Reply With Quote