I get this (and only this) compilation error when including Terrain.h
In file included from (...)MyProject/Source/Components/Map/Graphics/MapGraphics.cpp:4:0:
(...)Urho3D/Source/Engine/Graphics/Terrain.h:181:15: error: ?IndexBuffer? was not declared in this scope
SharedPtr<IndexBuffer> indexBuffer_;
^
(...)/Urho3D/Source/Engine/Graphics/Terrain.h:181:26: error: template argument 1 is invalid
SharedPtr<IndexBuffer> indexBuffer_;
^
[size=85]Note that I have omitted unnecesary path names. “MyProject” is my own project folder and “Urho3D” is the Urho3D main folder.[/size]
I will post my CMakeLists.txt file if requested but I don’t think it has nothing to do with it as all other headers are including just fine. The problem doesn’t seem to be either on Component.h, the file included in Terrain.h as my compiler would complain on that file as well… I suspect this might be a bug with Terrain not including all the dependencies it has because in the original engine code they were already imported beforehand. Could that be?