You should compile it like that: $ gcc -Wall recapture.c -o recapture -ljack -lpthread -lrt -lsndfile