Cuberite Forum

Full Version: [FIXED] Error while compiling on a Mac
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I've started the Component Rewrite, finally have the time, and I get this error when I try to compile my code:

Quote:In file included from /Volumes/Storage/dev/MCServer/src/Mobs/AIAgresssiveComponent.cpp:1:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/AIAgressiveComponent.h:2:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/AIComponent.h:2:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/Monster.h:4:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/../Entities/Pawn.h:4:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/../Entities/Entity.h:4:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/../Entities/../Item.h:12:
In file included from /Volumes/Storage/dev/MCServer/src/./Defines.h:4:
/Volumes/Storage/dev/MCServer/src/./ChatColor.h:12:15: error: use of undeclared identifier 'std'
static const std::string Color;

I'm sure I am missing something really simple that I need to be doing. What am I missing?
Might be related to precompiled headers. Make sure to #include "Globals.h" at the top of each cpp file.
Thanks. That fixed it.
Its been so long since I've written anything for MCServer I've forgotten the small things that need to happen.