error trying to include <ctime>?
error trying to include <ctime>?
- Subject: error trying to include <ctime>?
- From: Tobias Ford <email@hidden>
- Date: Sat, 23 Jul 2011 23:26:21 -0500
Sorry if this is a repost. I didn't see it come through on the list...
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]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:69:11:{70:9-70:11}: error: no member named 'clock' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:70:11:{71:9-71:11}: error: no member named 'difftime' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:71:11:{72:9-72:11}: error: no member named 'mktime' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:72:11:{73:9-73:11}: error: no member named 'time' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:73:11:{74:9-74:11}: error: no member named 'asctime' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:74:11:{75:9-75:11}: error: no member named 'ctime' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:75:11:{76:9-76:11}: error: no member named 'gmtime' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:76:11:{77:9-77:11}: error: no member named 'localtime' in the global namespace [3]
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:77:11:{78:9-78:11}: error: no member named 'strftime' in the global namespace [3]
In the case of the first error 'tm' these are the includes with cwchar actually including ctime:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/cwchar:51:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/postypes.h:45:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iosfwd:48:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:70:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/algorithm:64:
The same thing happens with the 10.7 sdk. Has anyone else seen this or have any suggestions? I'm hoping that I can just include an additional header or definition as a work around.
Thanks.
-------------------
Tobias Ford...
-------------------
Tobias Ford...
_______________________________________________
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