Re: pthread_once

Glynn Clements <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming,org.kernel.vger.linux-rt-users
Message-ID <[email protected]>
ratheesh k wrote:

> I have an embedded box running 2.6.18 linux with rt patch.
> 
> I am developing an  userspace application which need timer_create() .
> I have a big desktop machine with a 4 GB ram, running only linux
> 2.6.18 ( not rt linux ) . I would like to compile and test it on this
> Desktop PC .
> 
> I compiled my program and linked with librt.a on my Desktop PC. But
> when i run my program , it says
> 
> undefined symbol: pthread_once
> 
> what could be the problem, ???

pthread_once is defined in libpthread, which you should be linking
against if you're using librt.

-- 
Glynn Clements <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.