c++xcodeobjective-c++ctime

trouble including ctime in an objective-c++ project


It keeps failing on this kind of message (just replace tm with clock, difftime, mktime, time, asctime, ctime, gmtime, localtime, strftime :

no member named 'tm' in global namespace

I'm linking to an external project (Oolong Engine2) built with a makefile in Xcode 4.2 Does anyone recognize what solutions to this problem may be? I googled a bit and saw that others had the same problem, but saw no solutions.


Solution

  • The answer was something stupid where headers were being included twice.