I'm trying to translate a c-code written for linux to c-code for windows. When trying 'make', it says
implicit declaration of function 'fork'
So I searched the internet, found this: What is the closest thing Windows has to fork()? Downloaded Cygwin and installed it and tried 'make' again, it spits out the same error-output. After that, I copied my c project into the cygwin folder, opened the 'cygwin-terminal'-program and run 'make' in it, still same error-output. After that I copied 'cygwin1.dll' from cygwin bin folder into my project folder and changed my Makefile to
gcc -g -Wall -Wextra -Werror -o test_open cygwin1.dll main.c dictionary.c config.c tools.c
then start 'make' again in normal terminal, but it still spits out implicit declaration error.
Have you any suggestions, what I can try next to get fork() to compile?
Includes are:
#include<sys/types.h>
#include<unistd.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<stdbool.h>
#include<stdarg.h>
#include<errno.h>
#include<signal.h>