Skip to content

Instantly share code, notes, and snippets.

@Razzlegames
Last active December 19, 2020 15:36
Show Gist options
  • Select an option

  • Save Razzlegames/6652b0cb44a6915724f59539778a88b3 to your computer and use it in GitHub Desktop.

Select an option

Save Razzlegames/6652b0cb44a6915724f59539778a88b3 to your computer and use it in GitHub Desktop.
Godot-CPP Bindings fails to build with Visual Studio 2019 compiler (with default godot_api.json)
PS C:\Users\razzl\Development\Godot\gdnative_cpp_example\godot-cpp> scons platform=windows generate_bindings=yes
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cl /Fosrc\core\AABB.obj /c src\core\AABB.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
AABB.cpp
cl /Fosrc\core\Array.obj /c src\core\Array.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Array.cpp
cl /Fosrc\core\Basis.obj /c src\core\Basis.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Basis.cpp
cl /Fosrc\core\Color.obj /c src\core\Color.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Color.cpp
cl /Fosrc\core\Dictionary.obj /c src\core\Dictionary.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Dictionary.cpp
cl /Fosrc\core\GodotGlobal.obj /c src\core\GodotGlobal.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
GodotGlobal.cpp
cl /Fosrc\core\NodePath.obj /c src\core\NodePath.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
NodePath.cpp
cl /Fosrc\core\Plane.obj /c src\core\Plane.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Plane.cpp
cl /Fosrc\core\PoolArrays.obj /c src\core\PoolArrays.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
PoolArrays.cpp
cl /Fosrc\core\Quat.obj /c src\core\Quat.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Quat.cpp
cl /Fosrc\core\Rect2.obj /c src\core\Rect2.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
Rect2.cpp
cl /Fosrc\core\RID.obj /c src\core\RID.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
RID.cpp
cl /Fosrc\core\String.obj /c src\core\String.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\gen /Iinclude\core
String.cpp
src\core\String.cpp(102): error C2440: 'return': cannot convert from 'const wchar_t' to 'wchar_t &'
src\core\String.cpp(102): note: Conversion loses qualifiers
scons: *** [src\core\String.obj] Error 2
scons: building terminated because of errors.
PS C:\Users\razzl\Development\Godot\gdnative_cpp_example\godot-cpp> git branch
master
* nativescript-1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment