Problem in Visual C++ with Including files

I had made a program that handled vectors (mathematical).
Now that I was starting with SFML, I found that using that program will save me some trouble. So I got the Header file, and its corresponding cpp file and put it in the project I was making.
Then I removed those header inclusions I didn't need.(Namely, Functions.h, which I made to keep some functions that I tended to use regularly)

But after doing all of that, I was getting these errors:
1>f:\c++\c++ programs\collison testing\collison testing\vector.h(4): fatal error C1083: Cannot open include file: 'Functions.h': No such file or directory



1
2
3
4
5
6
#ifndef VECTOR_H
#define VECTOR_H

#include <string>

const long double PI = 3.14159265;

Here's the code upto line 6, after which I define the class.
I have tried restarting VC++ and Cleaning & Rebuilding The solution.
But the error persists. Any help?
is vector.h included as part of your project? If not, it won't auto-save when you try to build, and as a result it might be trying to build an older version of the file.

If that's not it, try restarting VS.
Yes, I did add it to the project (copied and pasted it into the header's section of the solution Explorer).
I have tried restarting VS already, and it didn't work!
Check to make sure you don't have multiple files named vector.h (like in different directories). Maybe the one you are #including is different from the one you added in your project.
Looked. The only place where it is in another project (The one where I made it the first time).

But just to make sure, I changed the include in the main file to:
#include "F:\\C++\\C++ Programs\\Collison Testing\\Collison Testing\\Vector.h"
Even now the error persists. I will try making another project.

EDIT:
Made the project again, this time copying the files from the program I was having the problem with.
The problem is solved!

Thanks anyway.
Last edited on
Topic archived. No new replies allowed.