I am given a code that has the following headers:
#include <aio.h>
#include <fcntl.h>
I complie using the following makefile make -f makefile.make
(on Mac OSX):
TARGET = run
LIBS = -O2 -lm
CC = gcc-7
CFLAGS = -fopenmp
.PHONY: default all clean
all: $(TARGET)
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) $(CFLAGS) $(LIBS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)
But I get this error:
In file included from main_seed.c:1:0:
seedio.h:4:10: fatal error: aio.h: No such file or directory
#include <aio.h>
^~~~~~~
compilation terminated.
make: *** [main_seed.o] Error 1
This means I have to find these headers first. The problem is that I don't know ehere to find them. I could only find this documentation page but there is no download link so that I can include them in the folder project. Can someone help me to spot these files?
Thank you