Re: Need help building a Canadian Cross

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 14.07.25 um 05:06 schrieb LIU Hao:
在 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 seems 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

Thank you.  That worked as expected.

Best regards

Johann




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux