• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
error trying to include <ctime>?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error trying to include <ctime>?


  • Subject: error trying to include <ctime>?
  • From: Tobias Ford <email@hidden>
  • Date: Sat, 23 Jul 2011 21:43:10 -0500

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?

Thanks.

-------------------
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

  • Follow-Ups:
    • Re: error trying to include <ctime>?
      • From: Andreas Grosam <email@hidden>
  • Prev by Date: Building for 10.7 in Xcode 3
  • Next by Date: Lion and gcc/g++ command not found
  • Previous by thread: Building for 10.7 in Xcode 3
  • Next by thread: Re: error trying to include <ctime>?
  • Index(es):
    • Date
    • Thread