Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using STL classes in VC++

Status
Not open for further replies.

raochetan

Programmer
Aug 20, 2001
62
IN
Hi,

I want to use STL classes like string, vector, hash and iterator in the VC++ 6.0. Eventhough the header files are present in the Include directory, which i have include in the program using #include<String>, i am getting a compile time error &quot;vector: undeclared identifier&quot;. Is there any settings which has to be done. Note that, it is not giving error regarding the files that are included.

Thanks in advance

raochetan
 
String: <string>
Vector: <vector>
Hash: <map>
Vector Iterator: <vector>::iterator

try it out
 
Maybe you must have an answer by now, but I think you need to include a use namespace std or else preface the vector with std::vector.
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top