Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

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
0
FrankD
Asked:
FrankD
1 Solution
 
jstolanCommented:
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"
0
 
jperretCommented:
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.
0
 
FrankDAuthor Commented:
The file is <vector> not <ventor.h>.
0
 
nietodCommented:
Opps jperret had that one before me.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now