Closed xiedeacc closed 2 months ago
I've built under Win10 msys2 (configure,cmake,ninja, and Visual Studio (cmake)
I don't have any idea (at the moment) why yours is failing. Will have to wait a day or to before commenting further.
Do you have any ideas why this is failing for you? I wonder why those defines started causing you trouble.
it turned out my enviroment problem, header conflication
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys\types.h contain a macro for off_t, why not use that macro directly? @davea42
off_t is used in dwarf_seekr.c (and only there).
I was under the impression that io.h would contain definitions of lseek() off_t and ssize_t but... looking at the relevant headers it appears not to be the case (now anyway).
It builds fine in the VS case just #include "sys/types.h"
I am considering removing those ifdef from libdwarf_private.h and if _MSC_VER defined do include of sys/types.n in dwarf_seekr.c. Since only dwarf_seekr.c refers to off_t.
Thoughts anyone? David Anderson
success after comment code in libdwarf_private.h windows 10 vs2022 sdk: 10.0.22621.0
error log