Hi,
I could not compile Far (svn) of late, there are a lot of "conflicts with previous declaration" errors.
Notice there is a new SDK folder with sdk.common.h, sdk.gcc.h, sdk.vc.h. which is used in headers.hpp.
This cause conflicts with my C:\MinGW\include\ddk\*.h

I use /cygdrive/c/mingw/bin/mingw32-make -f makefile_gcc to build
How to over come this?

What did I do wrong? Or is mingw no longer supported as the compiler? As far as I can tell, all the tools should be up to date, __W32API_VERSION is 3.17 and a very similar sequence (different in that I had to download MINGW tools by hand, not with mingw-get) used to work for me. The hacking-en file tells me to use mingw32-make -f makefile_gcc, but that gives me exactly the same results as the build.bat file.

FAR built in MinGW64 but... There were a couple of issues with #include's:

- In headers.hpp, I had to manually #include <devpropdef.h> before <setupapi.h> otherwise I was getting errors about DEVPROPKEY and DEVPROPTYPE.
- In interf.cpp and keyboard.cpp, IsWindows10OrGreater() wasn't recognized as defined via "headers.hpp" -> "sdk.hpp" -> "sdk/sdk_common.h", so I had to manually replace it with its return value and a hard-wired 0xA00 parameter for IsWindowsVersionOrGreater().

The 64bit build executable ran and functioned properly, but I am left unable to explain the above... any ideas?

Thanks in advance!

Last edited by HaRT on Fri 03 Feb, 2017 02:00, edited 1 time in total.
Reason:Merged with the Topic

It is not about the system it is about SDK version.
0x0502 version used in sdkddkver.h if neither WINVER nor _WIN32_WINNT was defined.
It looks like __GNUC__ is not defined in gcc you used, otherwise it should be defined in headers.hpp