You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RELEASE]
Scanning dependencies of target stlink
[ 3%] Building C object CMakeFiles/stlink.dir/src/chipid.c.obj
[ 6%] Building C object CMakeFiles/stlink.dir/src/common.c.obj /home/alam/stlink/src/common.c:19:0: error: "O_BINARY" redefined [-Werror]
#define O_BINARY 0 //! @todo get rid of this OH MY (@xor-gate)
In file included from /usr/include/sys/fcntl.h:3:0,
from /usr/include/fcntl.h:12,
from /home/alam/stlink/src/common.c:10:
/usr/include/sys/_default_fcntl.h:75:0: note: this is the location of the previous definition
#define O_BINARY _FBINARY cc1: all warnings being treated as errors make[3]: *** [CMakeFiles/stlink.dir/build.make:87:
CMakeFiles/stlink.dir/src/common.c.obj] Error 1
make[2]: *** [CMakeFiles/Makefile2:68: CMakeFiles/stlink.dir/all] Error 2
make[1]: *** [Makefile:150: all] Error 2
make: *** [Makefile:28: release] Error 2
OS: Cygwin for windows (64 bit)
The text was updated successfully, but these errors were encountered:
xor-gate
changed the title
Build errors
Re-declaration of O_BINARY when building with Cygwin (win64)
Apr 3, 2019
This is problem because under Cygwin O_BINARY is defined and under Mingw it is not. So there should be a extra compiler definition check to the custom memmap *NIX libc C function.
OS: Cygwin for windows (64 bit)
The text was updated successfully, but these errors were encountered: