shadow_boi
February 9th, 2008, 05:39 PM
hi guys.
I am using ubuntu.
My codes have these lines:
semaphore mutex = 1;
semaphore full = 0;
semaphore empty = 9;
when I compiled my codes in terminal, i got the following errors:
error: expected =, ,, ;, asm or __attribute__ before mutex
error: expected =, ,, ;, asm or __attribute__ before full
error: expected =, ,, ;, asm or __attribute__ before empty
Can you tell me what i did wrong?
thanks.
I am using ubuntu.
My codes have these lines:
semaphore mutex = 1;
semaphore full = 0;
semaphore empty = 9;
when I compiled my codes in terminal, i got the following errors:
error: expected =, ,, ;, asm or __attribute__ before mutex
error: expected =, ,, ;, asm or __attribute__ before full
error: expected =, ,, ;, asm or __attribute__ before empty
Can you tell me what i did wrong?
thanks.