I'm guessing there was some sort of namespace name issue due to "struct tm" in <time.h>.

gg