C++ SFML src/Utility/FileSystem.hpp:8:36: 致命错误
C++ SFML src/Utility/FileSystem.hpp:8:36: fatal error
我尝试在 this tutorial 的帮助下安装 SFML,因为我自己找不到安装它的方法。在我做了 CTRL + B
和 Run build & debug
之后我得到了这个错误:
⬤ Build & Run: Debug (target: sfml-vscode-boilerplate.exe)
src/PCH.hpp
In file included from src/PCH.hpp:66:0:
src/Utility/FileSystem.hpp:8:36: fatal error: experimental/filesystem: No such file or directory
#include <experimental/filesystem>
^
compilation terminated.
Makefile:313: recipe for target 'bin/Debug/obj/PCH.hpp.gch' failed
mingw32-make[1]: *** [bin/Debug/obj/PCH.hpp.gch] Error 1
Makefile:262: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
✘ Failed!
Review the compile errors above.
我正在使用 Windows10,g++ 版本 6.3.0,SFML 版本 2.5.1,Visual Studo Code
好吧,这只是 GCC 和 G++ 的错误版本
我尝试在 this tutorial 的帮助下安装 SFML,因为我自己找不到安装它的方法。在我做了 CTRL + B
和 Run build & debug
之后我得到了这个错误:
⬤ Build & Run: Debug (target: sfml-vscode-boilerplate.exe)
src/PCH.hpp
In file included from src/PCH.hpp:66:0:
src/Utility/FileSystem.hpp:8:36: fatal error: experimental/filesystem: No such file or directory
#include <experimental/filesystem>
^
compilation terminated.
Makefile:313: recipe for target 'bin/Debug/obj/PCH.hpp.gch' failed
mingw32-make[1]: *** [bin/Debug/obj/PCH.hpp.gch] Error 1
Makefile:262: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
✘ Failed!
Review the compile errors above.
我正在使用 Windows10,g++ 版本 6.3.0,SFML 版本 2.5.1,Visual Studo Code
好吧,这只是 GCC 和 G++ 的错误版本