在 2025-7-14 06:25, Segher Boessenkool 写道:
Searching this problem on the interwebs, many people seem to work around it by commenting out the failing line. Your solution seeme better :-) But, try CXXFLAGS="$(CXXFLAGS) -D__msxml_h__" or similar? Or use += , but that is only inside GNU make (the += operator in Bourne shell isn't quite the same).
It's recommended to use CPPFLAGS+=' -DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H'which also has an effect to skip many unnecessary includes for GCC. The `COM_NO_WINDOWS_H` macro is for Ada [1].
[1] https://github.com/msys2/MINGW-packages/blob/826110503c751216f5f5bfbc1096f4f4eb07fe15/mingw-w64-gcc/PKGBUILD#L258
-- Best regards, LIU Hao
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature