Koihik / LuaFormatter

Code formatter for Lua
Apache License 2.0
715 stars 85 forks source link

Windows 10 Issues: experimental/filesystem and 'your compiler does not fully support the c++17 standard...' #150

Open rdthree opened 4 years ago

rdthree commented 4 years ago

I've tried just about everything from binaries to the distributions and the python pip in order to get this to work. Compiling from source worked best at the end of the day, however here is the error I get just before it finished installing:

C:\Users\ray\AppData\Local\Temp\luarocks_luaformatter-scm-1-7094\LuaFormatter\test\cpp17\fs.cpp:8:10: fatal error: experimental/filesystem: No such file or directory
 #include <experimental/filesystem>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make[1]: *** [CMakeFiles\cmTC_d90ff.dir\build.make:84: CMakeFiles/cmTC_d90ff.dir/fs.cpp.obj] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/ray/AppData/Local/Temp/luarocks_luaformatter-scm-1-7094/LuaFormatter/build.luarocks/CMakeFiles/CMakeTmp'
mingw32-make: *** [Makefile:139: cmTC_d90ff/fast] Error 2

CMake Error at CMakeLists.txt:61 (message):
  Your compiler does not fully support the C++17 standard and libraries

-- Configuring incomplete, errors occurred!
See also "C:/Users/ray/AppData/Local/Temp/luarocks_luaformatter-scm-1-7094/LuaFormatter/build.luarocks/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ray/AppData/Local/Temp/luarocks_luaformatter-scm-1-7094/LuaFormatter/build.luarocks/CMakeFiles/CMakeError.log".

Error: Build error: Failed cmake.
Jaehaks commented 5 months ago

Me too. I tried with gcc / g++ in mingw. but I cannot install luaformatter gcc : v13.2.0 g++ : v13.2.0

I set the environment variable CXX.