I have a problem with minGW version and I copied archives by: hpps://github.com/meganz/mingw-std-threads , but now I have this errors: fatal error: synchapi.h: No such file or directory.
1 2 3 4 5 6 7
#include "mingw.invoke.h"
#include <synchapi.h> // For WaitForSingleObject
#include <handleapi.h> // For CloseHandle, etc.
#include <sysinfoapi.h> // For GetNativeSystemInfo
#include <processthreadsapi.h> // For GetCurrentThreadId
#include <process.h> // For _beginthreadex
cd to your mingw folder and do "dir /s synchapi.h" to see if it exists.
If it does exist... try adding the directory to your list of include search paths.
It it doesn't... I'm not sure what do to then. What version of Windows are you running? What version of MinGW do you have? You might need to update MinGW.