[FIXED] Error while compiling on a Mac
#1
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?
Reply
Thanks given by:
#2
Might be related to precompiled headers. Make sure to #include "Globals.h" at the top of each cpp file.
Reply
Thanks given by:
#3
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.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)