NO

Author Topic: Troubles with Pelles C Pthread.h/wait.h libraries  (Read 3251 times)

Mike Jones

  • Guest
Troubles with Pelles C Pthread.h/wait.h libraries
« on: August 07, 2013, 05:10:51 AM »
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

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2098
Re: Troubles with Pelles C Pthread.h/wait.h libraries
« Reply #1 on: August 07, 2013, 09:49:56 AM »
<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