"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



Reply via email to