Link to home
Start Free TrialLog in
Avatar of FrankD
FrankD

asked on

Lost #include file.

I'm writing a listing that "#includes" a <vector.h> file.
However, I keep getting the error message..." cannot open <vector.h>". I've tried to compile in Borland Turbo C++ and Visual C++, and get the same message in both. Would greatly appreciate some timely assistance.
Thanks in advance!
               Frank
Avatar of jstolan
jstolan

First make sure you have vector.h on your computer.  This is not part of the normal visual c++ include files.  If you do, make sure that it resides on the proper search path for the compiler.  In visual C++ this is found under the tools-options menu item on the directories tab.  If you don't want to move the file or add to the #include directory search list, you can copy the file to the source directory of your program, and change the line to be:

#include "vector.h"
My version of VC++ is 5.0. And no, I can't find any vector.h file on my computer. I guess my problem is that I need to find out how to obtain or create that type of file.
Avatar of FrankD

ASKER

The file is <vector> not <ventor.h>.
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial