hello (again)

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)

I think a lot of you know about this.
the labrary semaphore contains
COPYING  Makefile  README  man/  rt_ipc.c  rt_ipc.h  test/

I type make and get :
In file included from rt_ipc.c:35:
rt_ipc.h:28: parse error before `RT_TASK'
rt_ipc.h:28: warning: no semicolon at end of struct or union
rt_ipc.h:29: warning: type defaults to `int' in declaration of
`RT_TASK_ENTRY'
rt_ipc.h:29: warning: data definition has no type or storage class
rt_ipc.h:44: parse error before `RT_TASK_ENTRY'
rt_ipc.h:44: warning:.........

and this is the file :
#include <rtl_sched.h>
typedef enum { RT_SEM_BINARY, RT_SEM_COUNTING } RT_SEMTYPE;

typedef struct tsk_list
{
  struct tsk_list *prev;
  struct tsk_list *next;
  RT_TASK
*task;
<-this line is the problem
} RT_TASK_ENTRY;        /* wait list entry structure */

to me it seems looks wrong, but i am not sure. I have some suggestions
1     there should be a struct in front of RT_TASK *task
2    RT_TASK is not defined. THAT is a problem.

I could try to solve it like trail and error but I don't think that this
is a good solution.

I have installed rtlinix 2.3 with kernel 2.2.14 using egcs1.1.2


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to