Troubles with Pelles C Pthread.h/wait.h libraries

Started by Mike Jones, August 07, 2013, 05:10:51 AM

Previous topic - Next topic

Mike Jones

Hello all i am new to this forum and need a little help today.

We are stuck on this error below. Does Pelles not use this library? Is there a alternate that we can use in place of it?

This is the error I am getting below.

C:\Users\15178655\Desktop\dfgadfgag.c(1): fatal error #1035: Can't find include file <pthread.h>.

Thanks in advance for the help.

Mike Jones

frankie

<pthread.h> header is for *nix systems (unix, linux, xenix, ultrix, ...).
Windows doesn't have it. Thread's definitions are included directly by <windows.h>.
If you get this source from a *nix distribution you have to remove the include, than check what other errors you get and translate *nix specific thread's calls to the equivalent, if any, windows call.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide