Am 03.11.25 um 00:21 schrieb Thibaut Cuvelier:
Hi all,
I'm trying to build LyX at head, but MSVC isn't too happy with libiconv
1.18:
D:\LyX\lyx\3rdparty\libiconv\1.18\lib\genflags.c(37): error C2016: C
requires that a struct or union have at least one member
D:\LyX\lyx\3rdparty\libiconv\1.18\lib\genflags.c(38): error C2016: C
requires that a struct or union have at least one member
D:\LyX\lyx\3rdparty\libiconv\1.18\lib\genflags.c(39): error C2016: C
requires that a struct or union have at least one member
I'm not sure what I can do, as it's in generated code⦠Apparently, it's
not really legal C code, which MSVC and GCC/Clang resolve differently
(e.g., https://stackoverflow.com/questions/78525821/handling-c2016-
error-on-windows-using-visual-studio-code <https://stackoverflow.com/
questions/78525821/handling-c2016-error-on-windows-using-visual-studio-
code>).
Maybe it is not even needed for our usage of libiconv. In the old
version genflags.c was not compiled, but I did not understand why.
Can you please try to exclude genflags.c from the build? If that does
not produce a linker error then this is the best solution IMHO.
Georg
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel