Solved

Lost #include file.

Posted on 1998-06-02
4
164 Views
Last Modified: 2013-11-18
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
Comment
Question by:FrankD
4 Comments
 
LVL 2

Expert Comment

by:jstolan
ID: 1165117
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
 

Expert Comment

by:jperret
ID: 1165118
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
 

Author Comment

by:FrankD
ID: 1165119
The file is <vector> not <ventor.h>.
0
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1165120
Opps jperret had that one before me.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now