At 2021-08-02 22:19:43, "LIU Hao" <lh_mouse@xxxxxxx> wrote: >在 8/2/21 11:08 AM, bootmgr--- via Gcc-help 写道: >> I'm failed to compile libstdc++. >> Configured by ../gcc-11.2.0/configure --disable-multilib --disable-nls --enable-graphite --enable-languages=c,c++,lto --enable-mingw-wildcard --enable-threads=mcf --enable-version-specific-runtime-libs --disable-libstdcxx-pch --enable-fully-dynamic-string --enable-large-address-aware --enable-vtable-verify --target=x86_64-w64-mingw32 --with-sysroot=/usr/local >> Build: x86_64-linux-gnu Target:x86_64-w64-mingw32 Host: x86_64-linux-gnu >> >> > >While I do have a hunk for the source file in question [1], failure to find `<cstdlib>` is indeed >something unusual. It is most likely that you didn't install c++ headers into the correct directory, >so your (stage1 I guess) compiler failed to find them. > > >[1] >https://github.com/lhmouse/MINGW-packages-dev/blob/ddafe5bc97e027627900b95a96eacbcabdc889d7/mingw-w64-gcc-git/9000-gcc-10-branch-Added-mcf-thread-model-support-from-mcfgthread.patch#L218 > > >-- >Best regards, >LIU Hao > Maybe it's useful to change it to stdlib.h?