#include <semaphore.h>
#include <stdio.h>
Why am I getting this when I have the correct header file included?
edc@edc-Satellite-L455:~$ gcc sem.c
/tmp/ccsvm3Ok.o: In function `main':
sem.c
.text+0xc4): undefined reference to `sem_init'
sem.c
.text+0xff): undefined reference to `sem_wait'
sem.c
.text+0x12d): undefined reference to `sem_post'
sem.c
.text+0x15e): undefined reference to `sem_wait'
sem.c
.text+0x18c): undefined reference to `sem_post'
HELP!!
thanks,
ed92626@gmail.com