RE: Where is "<vector.h>" with XCode 2.0 and Tiger
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
Where is "vector.h" with XCode 2.0 to build an
cocoa obj-c/c++ application?
|
_______________________________________________
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