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?

in Engine by (200 points)
retagged by

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.

by (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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.