#Error with std::byte
36 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
I read in internet that byte member was added at C++17, but the code was made in that version and is compiling with that version (using Makefile)
CC is the compiler command, not the flags... I'm not sure if that would work
can you show your full makefile
Actually, is this vscode? try compiling with make
this is probably just a config issue in vscode
That looks fine... do g++ --version
that's a really old version of the compiler
it probably doesn't support those C++17 changes
(17 means 2017.... your copyright says 2016 😄 )
You probably installed the original mingw project, which has been discontinued
@vital bolt https://github.com/niXman/mingw-builds-binaries/releases
Download the
x86_64-13.2.0-release-posix-seh-ucrt-rt_v11-rev0.7z version is what you should get I believe
MinGW-w64 is the continued project
and is updated to GCC 13
and just go into where you previously installed mingw and replace it
hmm
ok let me try
btw, why posix one?
and not windows?
ok it worked!!!
thank you so much :3
comes with stuff like threads
oh ok
glad you got it working and your compiler updated 🙂
Note that you can even use C++20 now too
yeah!
we usually use at classes the C++17 but I was using CLion at that time (and it uses the inbuilt mingw). So now that I went to another project and come to VSCode I forgot about the version xD
@vital bolt Has your question been resolved? If so, type !solved :)
!solved