Re: error trying to include <ctime>?
Re: error trying to include <ctime>?
- Subject: Re: error trying to include <ctime>?
- From: Andreas Grosam <email@hidden>
- Date: Sun, 24 Jul 2011 12:57:40 +0200
On Jul 24, 2011, at 4:43 AM, Tobias Ford wrote:
> I'm porting a large code base and I'm trying to track down a bug that appears to be a missing include or define in the system headers.
>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:67:11:{68:9-68:11}: error: no member named 'tm' in the global namespace [3]
File cftime includes per #include <time.h> the definition of struct tm.
Does the translation unit possible include a custom file named "time.h" (case insensitive) which can be mismatched with the system file time.h?
If this is the case, your search paths in the project settings need a fix.
You may put the -v option to the C Flags to the target's build settings, then check the transcription (the output of the compiler and linker when building) to see which header paths are set.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden