gcc -o process_structure.o -pthread -c process_structure.c -std=gnu99 -W -Wall
gcc -o sds_process.o -pthread -c sds_process.c -std=gnu99 -W -Wall
gcc -o sds_switch.o -pthread -c sds_switch.c -std=gnu99 -W -Wall
gcc -o signal.o -pthread -c signal.c -std=gnu99 -W -Wall
gcc sds_switch.o signal.o -o sds_switch
sds_switch.o: In function `main':
sds_switch.c

.text+0x666): undefined reference to `pthread_create'
signal.o: In function `signal_receive_callback':
signal.c

.text+0x6e1): undefined reference to `pthread_create'
signal.o: In function `signal_receive_callback_server':
signal.c

.text+0x809): undefined reference to `pthread_create'
signal.o: In function `signal_receive_callback_thread_int':
signal.c

.text+0x93a): undefined reference to `pthread_create'
signal.o: In function `signal_receive_callback_thread':
signal.c

.text+0x9b2): undefined reference to `pthread_create'
signal.o:signal.c

.text+0xb4a): more undefined references to `pthread_create' follow
signal.o: In function `signal_wait_reception_thread':
signal.c

.text+0xc0b): undefined reference to `pthread_join'
signal.o: In function `signal_stop_receive_callback':
signal.c

.text+0xce4): undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make: *** [all] Erreur 1
Partager