Category : gcc

This is with C++20 (-std=c++20), GCC 10.2.0 and Clang 11.1.0. I have a class Graph with a data member prefix_to_presufs. In my code, I make a std::unique_ptr to a Graph like so: auto gr{std::make_unique<Graph>()}; then I try to do this: auto less{[&p2p{gr->prefix_to_presufs}](PreSuf l, PreSuf r) -> bool { return p2p[l.suf()].size() < p2p[r.suf()].size(); }}; However, GCC ..

Read more

Im using this code: BUILD_CC="gcc" CC="${XterOS_TARGET}-gcc" AR="${XterOS_TARGET}-ar" RANLIB="${XterOS_TARGET}-ranlib" CFLAGS="-O2" glibc-2.27/configure –prefix=/usr –host=${XterOS_TARGET} –build=${XterOS_HOST} –disable-profile –enable-add-ons –with-tls –enable-kernel=2.6.32 –with-__thread –with-binutils=${XterOS}/cross-tools/bin –with-headers=${XterOS}/usr/include –cache-file=config.cache and im getting this error configure: loading cache config.cache checking build system type… x86_64-cross-linux-gnu checking host system type… x86_64-unknown-linux-gnu checking for x86_64-unknown-linux-gnu-gcc… x86_64-unknown-linux-gnu-gcc checking for suffix of object files… configure: error: in /home/igor/xter-os/glibc-build’: configure: ..

Read more