Hello,
I'm using gcc 4 and i've been getting some "strange" error messages that
i can't interpret.
a) expression 'extern void cpu_idle(void);' produces the following error
error: expected expression before 'void'
error: expected ')' before '->' token
error: expected ')' before '==' token
b)
1 static inline void task_lock(struct task_struct *p)
2{
3 spin_lock(&p->alloc_lock);
4}
5 static inline void task_unlock(struct task_struct *p)
6{
7 spin_unlock(&p->alloc_lock);
8}
the following error messages appear:
2: error: expected identifier or '(' before '{' token
6: error: expected identifier or '(' before '{' token
c)
1 enum rpc_accept_stat {
2 RPC_SUCCESS = 0,
3 RPC_PROG_UNAVAIL = 1,
4 RPC_PROG_MISMATCH = 2,
5 RPC_PROC_UNAVAIL = 3,
6 RPC_GARBAGE_ARGS = 4,
7 RPC_SYSTEM_ERR = 5
8};
2: error: expected identifier before numeric constant
Does anyone have insight on what might be going wrong?
____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.