I got 2 errors with compiler (MSVC 19.14+) while using scons
scons: Building targets ...
cl /Fosrc\gdexample.obj /c src\gdexample.cpp /TP /nologo -DWIN32 -D_WIN32 -D_WINDOWS -W3 -GR -D_CRT_SECURE_NO_WARNINGS -EHsc -D_DEBUG -MDd /I. /Igodot-cpp\godot_headers /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /Isrc
gdexample.cpp
e:\godot\godot 3.2\projects (own)\gdnative c++ based from bastiaan olij\gdnative_cpp_example\godot-cpp\include\core\Basis.hpp(15) : error C2620: 'godot::Basis::elements' : illegal union member; type 'godot::Vector3' has a user-defined constructor or non-trivial default constructor
e:\godot\godot 3.2\projects (own)\gdnative c++ based from bastiaan olij\gdnative_cpp_example\godot-cpp\include\core\Basis.hpp(16) : error C2620: 'godot::Basis::x' : illegal union member; type 'godot::Vector3' has a user-defined constructor or non-trivial default constructor
e:\godot\godot 3.2\projects (own)\gdnative c++ based from bastiaan olij\gdnative_cpp_example\godot-cpp\include\core\Basis.hpp(16) : error C2620: 'godot::Basis::y' : illegal union member; type 'godot::Vector3' has a user-defined constructor or non-trivial default constructor
e:\godot\godot 3.2\projects (own)\gdnative c++ based from bastiaan olij\gdnative_cpp_example\godot-cpp\include\core\Basis.hpp(16) : error C2620: 'godot::Basis::z' : illegal union member; type 'godot::Vector3' has a user-defined constructor or non-trivial default constructor
e:\godot\godot 3.2\projects (own)\gdnative c++ based from bastiaan olij\gdnative_cpp_example\godot-cpp\include\core\Ref.hpp(5) : fatal error C1083: Cannot open include file: 'Reference.hpp': No such file or directory
scons: *** [src\gdexample.obj] Error 2
scons: building terminated because of errors.
I got it fixed, my scons were still using older versions of MSVC in my x86 Program Files folder which I had plenty of MSVC versions so I had to remove all of them except the new. The errors are gone.
I got 2 errors with compiler (MSVC 19.14+) while using scons