I run into problems sometimes when building Spring where it's a matter of a simple include file or #define that is missing from a source file. I assume that this is my environment since the developer who checked in the given change must have tested to make sure they could build.
For example, I recently pulled from latest via git, and in BaseNetProtocol.cpp, the following had been added as part of a larger change:
Code: Select all
*packet << static_cast<uint16_t>(size) << reason;
Code: Select all
error C2061: syntax error : identifier 'uint16_t' e:\Projects\spring\rts\System\BaseNetProtocol.cpp 41
There are other examples of this as well, but, I didn't want to spam the forum with them.
My question is, am I doing something wrong here so that when someone checks in a change, I need to add these extra includes and defines to these various files?
Again, my apologies for the super-noobish question.
Mike