Troubles with POSIX program using threads with gcc
问题 I must do a program with POSIX threads with gcc and when i try to compile it, the terminal show a message like: /tmp/ccw594wa.o: In function main': POSIX.c:(.text+0xda): undefined reference to pthread_create' POSIX.c:(.text+0x102): undefined reference to `pthread_create' collect2: ld devolvió el estado de salida 1 can someone help me to identify the error cause??, the program has to implemente the producer-consumer algorithm to do some task, my code (unfinished) is the next one #include