il comando che uso è:
gcc -lpthread -o eseguibile strutturadati.h sorgente.c