When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
4 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
mathwait.c:5:10: fatal error: sys/wait.h: No such file or directory
5 | #include <sys/wait.h>
| ^~~~~~~~~~~~
All of the includes I am using
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
here is makefile if it helps
GCC = gcc
CFLAGS = -g -Wall -Wshadow
mathwait: mathwait.o
$(CC) $(CFLAGS) mathwait.o -o mathwait
mathwait.o: mathwait.c
$(CC) $(CFLAGS) -c mathwait.c