Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » sys/wait.h in windows

This thread is locked; no one can reply to it. rss feed Print
sys/wait.h in windows
kazzmir
Member #1,786
December 2001
avatar

I wrote a program in Solaris( UNIX ) that uses <sys/wait.h> and various signal stuff. When trying to compile in windows, i get the following errors:

gcc pp_concurrent_operations.c -c -o pp_concurrent_operations.o
pp_concurrent_operations.c:45:22: sys/wait.h: No such file or directory
pp_concurrent_operations.c: In function `runCommand':
pp_concurrent_operations.c:318: `P_PID' undeclared (first use in this function)
pp_concurrent_operations.c:318: (Each undeclared identifier is reported only onc
e
pp_concurrent_operations.c:318: for each function it appears in.)
pp_concurrent_operations.c:318: `SIGCONT' undeclared (first use in this function
)
pp_concurrent_operations.c: In function `main':
pp_concurrent_operations.c:478: `SIGCONT' undeclared (first use in this function
)
pp_concurrent_operations.c:527: `P_PID' undeclared (first use in this function)
make: *** [pp_concurrent_operations.o] Error 1

Anyone know a way to compile this? Im using mingw with gcc 3.2.3.

MiquelFire
Member #3,110
January 2003
avatar

Only I know is to either find Window's version of that header, or download Cygwin.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

Oscar Giner
Member #2,207
April 2002
avatar

All that stuff is UNIX specific.

Maybe that could be compiled using cygwin?

Go to: