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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

polem with vector class 2

Status
Not open for further replies.

ssudha17

Programmer
Feb 20, 2001
21
0
0
US
In all other complers this seems to work but in BC++ it doesnt work. It says Undefined symbol vector. Dont know why...
#include <iostream.h>
#include <conio.h>
#include <vector.h>
void main()
{
vector <int> A(10);
}

Please let me know how I can use the vector class in Borland C++
rgds,
Sudha Visit to know more about me
 
Hi,

3 remarks. Maybe one would help?

1. I think that the STL was included in Borland C++ starting from release 5. Make sure of what BCW you are using and if it includes the STL.

2. By the way, if I remember correctly, STL lies in a &quot;classlib&quot; folder. Please make sure of that. In this case you should have &quot;#include <classlib\vector.h>&quot;.

3. I have had sometimes some problems with vectors, that I solved (don't ask me why) by using some typedefs:
typedef vector<int> VectorInt;
VectorInt A(10);


Hope that helps,

Woliwol

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top