[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] semaphores
- To: "'RT-Linux'" <rtl@rtlinux.org>
- Subject: Re: [rtl] semaphores
- From: Anders Gnistrup <agn@city.dk>
- Date: Thu, 15 Feb 2001 17:57:15 +0100
- References: <Pine.LNX.4.21.0102150715410.11875-100000@tux.uchicago.edu>
- Sender: anders@emdrupborg.dk
"Daniel R. Schuette" wrote:
> On Fri, 26 Jan 2001, Anders Gnistrup wrote:
>
> > I was having a problem the <semaphore.h> but was tould that I should use
> > <rt_ipc.h> and insert rt_ipc.o as a modul. Now I am having another
> > problem. "rt_ipc.o" is going to be compiled but it will not do so. I
> > recive a error messege (and a lot more of error's but I think that these
> > depend on the first one)
>
> Hi Andrew,
>
> Did you ever get an answer to this question? I am struggling with it
> myself and would greatly appreciate any answers you may have found.
>
hi. I my have a solution.
You have to link to the pthreads if you use <semaphore.h>. Semaphore can and
should be used in programs. when you compile the module try to set
-D_REENTRANT and -lpthread in the back. then is shold work. in fact -lpthread
should handle the problem itself.
Anders Gnistrup