Skip to content

Fix compile error on windows using mingw#240

Merged
genivia-inc merged 1 commit into
Genivia:masterfrom
bredelings:fix-mingw-input-select
Jul 2, 2026
Merged

Fix compile error on windows using mingw#240
genivia-inc merged 1 commit into
Genivia:masterfrom
bredelings:fix-mingw-input-select

Conversation

@bredelings

Copy link
Copy Markdown
Contributor

Hi,

I noted that on windows I get the following compile error:

"D:\a\_temp\msys64\mingw64\bin/ccache.EXE" "g++" "-Isubprojects/RE-flex-6.3.0/libreflex_static_lib.a.p" "-Isubprojects/RE-flex-6.3.0" "-I../subprojects/RE-flex-6.3.0" "-I../subprojects/RE-flex-6.3.0/include" "-fdiagnostics-color=always" "-DNDEBUG" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-Wpedantic" "-std=c++11" "-O3" "-g" -MD -MQ subprojects/RE-flex-6.3.0/libreflex_static_lib.a.p/lib_input.cpp.obj -MF "subprojects/RE-flex-6.3.0/libreflex_static_lib.a.p/lib_input.cpp.obj.d" -o subprojects/RE-flex-6.3.0/libreflex_static_lib.a.p/lib_input.cpp.obj "-c" ../subprojects/RE-flex-6.3.0/lib/input.cpp
../subprojects/RE-flex-6.3.0/lib/input.cpp:53:12: fatal error: sys/select.h: No such file or directory
   53 | #  include <sys/select.h>
      |            ^~~~~~~~~~~~~~
compilation terminated.

This is because I'm using the mingw compilers, and for some reason they are not treated as windows compilers. The current PR fixes the issue by treating MINGW just like other windows compilers, which seems like the correct fix.

@genivia-inc genivia-inc merged commit dada3d2 into Genivia:master Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants