Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rynair |
I’m making a small project using GDExtension’s cpp bindings (the idea is to reuse some cpp code I have to make it usable inside Godot)
When I’m compiling, however, I get the following error message (on Visual Studio 2019):
Error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I’m getting this error on the file godot-cpp/variant/vector2.hpp at the following line:
Vector2 min(const Vector2 &p_vector2) const {
return Vector2(MIN(x, p_vector2.x), MIN(y, p_vector2.y));
}
From my understanding this means that the compiler can’t recognize the Vector2 definition as a valid type. This function is defined inside the Vector2 struct
What’s happening here?