• 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
RE: Where is "<vector.h>" with XCode 2.0 and Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Where is "<vector.h>" with XCode 2.0 and Tiger


  • Subject: RE: Where is "<vector.h>" with XCode 2.0 and Tiger
  • From: "Adam Thayer" <email@hidden>
  • Date: Fri, 3 Jun 2005 08:14:56 -0700

Use #include <vector> instead. <vector.h> is not part of the C++ standard, if I remember correctly, and so not all compilers support it. Rule of thumb is that C++ STL headers don’t have .h after them, and are named after the type that the header brings in. This was supposed to provide fine granularity, and allow you to include just the types you used in C++, leaving the rest out, as well as reduce namespace clashes with libc (string vs string.h, for example).

 

The file itself exists within the GCC library includes where libstdc++ resides, if you want to hunt it down yourself. Since I am not on my Mac dev machine, I couldn’t tell you the exact path for it.

 


From: cocoa-dev-bounces+krevnik=email@hidden [mailto:cocoa-dev-bounces+krevnik=email@hidden] On Behalf Of Emmanuel Verlynde
Sent: Friday, June 03, 2005 5:44 AM
To: email@hidden
Subject: Where is "<vector.h>" with XCode 2.0 and Tiger

 

Hi all.

 

Where is "vector.h" with XCode 2.0 to build an cocoa obj-c/c++ application?

 

Thanks.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Where is "<vector.h>" with XCode 2.0 and Tiger (From: "Emmanuel Verlynde" <email@hidden>)

  • Prev by Date: CFMessagePortCreateLocal(): failed to name Mach port
  • Next by Date: Re: ScreenSaverView/NSQuickDrawView/Opaque issue [update]
  • Previous by thread: Re: Where is "<vector.h>" with XCode 2.0 and Tiger
  • Next by thread: ScreenSaverView/NSQuickDrawView/Opaque issue [update]
  • Index(es):
    • Date
    • Thread