更新时间:2023-11-29 13:59:28
感谢大家的投入.我已经解决了这个问题,尽管没有任何实际的解决方案.MinGW是我最大的嫌疑人,因为:
thank you all for your input. I'm done with this problem, although without any actual solution. MinGW is my biggest suspect, since:
无法编译的我的GCC版本是 g ++.exe(x86_64-posix-seh-rev0,由MinGW-W64项目构建)8.1.0
My GCC version, where the compilation doesn't work, is g++.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
另外,在Linux上,当我输入如下命令时,它也可以工作:
Also, on Linux, it works when I type the command like this:
g++ main.cpp -std=c++17 -lstdc++fs -o main