I am new to C programming.
I tried to use the pthread API to write some parallel program.
I downloaded the Eclipse IDE for C / C ++, MinGW developers. I put the whole library header files in the appropriate location of the MinGW file.
When I tried to create a project, there is always a "can't find -lpthread" error, what happened? I added "-pthread" to the GCC compiler.
I searched a lot on Google, but it seems I don't have the same problem as me.
source
share