I am running Cygwin on windows 8, attempting to compile the source code for a game I would like to mod. Unfortunately I am running into some errors while building involving
For windows...
fileno()
is deprecated: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/posix-fileno?view=vs-2017
use _fileno()
instead: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fileno?view=vs-2017
Changing the -std=c***
in your makefile to -std=gnu++0x
should fix your problem.
If you don't know what c++11
is you're most likely not using it anyway.
Also if you need c++11
support you can also do: -std=gnu++11
instead of -std=gnu++0x