0 votes

Hello! I was doing alright compiling 3.0 to use the new features despite that it could crash on me at any time, when suddenly the compile doesn't work anymore and renders out this error result:

godot\core/io/json.h(62): error C2079: 'JSON::Token::value' uses undefined class 'Variant'

scons: *** [modules\gdnative\godot\dictionary.windows.tools.64.obj] Error 2
scons: building terminated because of errors.

Any idea on what is causing this error in the compiler?

asked Aug 3, 2017 in Engine by Corruptinator (198 points)
retagged Aug 3, 2017 by Corruptinator

1 Answer

0 votes

Open the file godot/core/io/json.h
Change the line 33 from #include "variant.h" to this #include "../variant.h" and it should be compiled successfully.

answered Aug 3, 2017 by CZHeron (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.