perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
629 stars 44 forks source link

Compiling for Windows: Error C2429 Requires Compiler Flag "/std:c++17" #18

Closed Jamtoad closed 4 years ago

Jamtoad commented 4 years ago

Howdy! I have been trying to build Lua into Godot, but I get this error.

error C2429: language feature 'init-statements in if/switch' requires compiler flag '/std:c++17'

I have everything installed correctly and Godot was built without any hiccups. I cloned luascript into the modules folder. I think I did everything correctly. Maybe I am missing a file... Well I must be or else I wouldn't be getting this error haha. I did enable C++ when installing Visual Studio, I followed the Godot tutorial on the website for building Godot word for word.

I am sorta new to Github so I apologize if I am doing this whole issue thing incorrectly.

Thank you and have a good one.

Jamtoad commented 4 years ago

There was a couple C++ compiler addons I didn't download when installing Visual Studio. It works now! Super excited to use it!