Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone able to build on MSYS2 Windows 11 ? #134

Open
sukerat opened this issue Oct 22, 2022 · 0 comments
Open

Anyone able to build on MSYS2 Windows 11 ? #134

sukerat opened this issue Oct 22, 2022 · 0 comments

Comments

@sukerat
Copy link

sukerat commented Oct 22, 2022

Does anyone have an example of what a typical config.mk should look like when building on a MS Windows MSYS2 environment?

I get the below error when attempting to build after I have added "D_WCTYPE_T" to CFLAGS

dvtm build options:
CFLAGS = -std=c99 -I. -I/usr/include -DVERSION="0.15" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -D_WCTYPE_T
LDFLAGS = -lc -lutil -lncursesw
CC = cc
CC dvtm.c
In file included from C:/msys64/usr/include/sys/fcntl.h:3,
from C:/msys64/usr/include/fcntl.h:12,
from dvtm.c:24:
C:/msys64/usr/include/sys/_default_fcntl.h:186:8: error: redefinition of 'struct flock'
186 | struct flock {
| ^~~~~
In file included from C:/msys64/usr/include/sys/types.h:224,
from C:/msys64/usr/include/sys/unistd.h:12,
from C:/msys64/usr/include/unistd.h:4,
from dvtm.c:14:
C:/msys64/usr/include/machine/types.h:46:8: note: originally defined here
46 | struct flock {
| ^~~~~
In file included from C:/msys64/usr/include/errno.h:9,
from dvtm.c:33:
C:/msys64/usr/include/sys/errno.h:14: warning: "errno" redefined
14 | #define errno (__errno())
|
In file included from C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/stddef.h:1,
from C:/msys64/usr/include/stdlib.h:16,
from dvtm.c:13:
C:/msys64/mingw64/include/stddef.h:19: note: this is the location of the previous definition
19 | #define errno (
_errno())
|
make: *** [Makefile:19: dvtm.o] Error 1

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

No branches or pull requests

1 participant