Solved

Lost #include file.

Posted on 1998-06-02
4
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

734 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