-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I have a problem when compiling server file. Why is that happening? Please help me.
ubuntux@ubuntux-VirtualBox:~/Desktop/Stream-Server-master$ make
gcc -Wall -Werror -lpthread -lasound server.c capture.c -o server
/tmp/ccOmOWpD.o: In function main': server.c:(.text+0x47c): undefined reference to pthread_create'
server.c:(.text+0x4fe): undefined reference to pthread_create' /tmp/ccX2ACII.o: In function record':
capture.c:(.text+0x39): undefined reference to snd_pcm_hw_params_sizeof' capture.c:(.text+0x75): undefined reference to snd_pcm_hw_params_sizeof'
capture.c:(.text+0xa1): undefined reference to snd_pcm_open' capture.c:(.text+0xdf): undefined reference to snd_pcm_hw_params_any'
capture.c:(.text+0x12a): undefined reference to snd_pcm_hw_params_set_access' capture.c:(.text+0x16e): undefined reference to snd_pcm_hw_params_set_format'
capture.c:(.text+0x1b9): undefined reference to snd_pcm_hw_params_set_rate_near' capture.c:(.text+0x226): undefined reference to snd_pcm_hw_params_set_period_size'
capture.c:(.text+0x26a): undefined reference to snd_pcm_hw_params_set_channels' capture.c:(.text+0x2a9): undefined reference to snd_pcm_hw_params'
capture.c:(.text+0x2e1): undefined reference to snd_pcm_prepare' capture.c:(.text+0x347): undefined reference to snd_pcm_readi'
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'server' failed
make: *** [server] Error 1