| | |
Set the include path
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
Include path of what ? I guess you need to add it in your makefile.
•
•
Join Date: Jul 2008
Posts: 46
Reputation:
Solved Threads: 0
Hi
Let me elaborate it
I have opened a VC++.net project
When I compile the project I am getting an error.
fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory
Now I have created a folder 'Test' and add a header file 'Testnamespaces.h'.
But still I am getting the same error.
Let me elaborate it
I have opened a VC++.net project
When I compile the project I am getting an error.
fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory
Now I have created a folder 'Test' and add a header file 'Testnamespaces.h'.
But still I am getting the same error.
•
•
Join Date: May 2008
Posts: 538
Reputation:
Solved Threads: 86
If the include line looks like:
it should look for the Test directory in the same directory the source file was located in, or in the include path.
If you used:
the compiler will not look in the source file's directory first.
Which style of include did you use?
If this doesn't help, the relevant section from your code would be useful as well as the project directory listing to demonstrate where the files are located in relation to each other.
C++ Syntax (Toggle Plain Text)
#include "Test/Testnamespaces.h"
If you used:
C++ Syntax (Toggle Plain Text)
#include <Test/Testnamespaces.h>
Which style of include did you use?
If this doesn't help, the relevant section from your code would be useful as well as the project directory listing to demonstrate where the files are located in relation to each other.
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 118
here is a good link on how to set search paths when compiling c++
http://www.network-theory.co.uk/docs...cintro_24.html
http://www.network-theory.co.uk/docs...cintro_24.html
Due to lack of freedom of speech, i no longer post on this website.
![]() |
Similar Threads
- calling Python function from C/C++ (Python)
- linux C++ include file error (C++)
- Beginner's question - Unable to open "include" file (C++)
- Transversing the MS-Windows File System (C++)
- Wireless Internet is Terminated in an Abnormal Way!!! (Networking Hardware Configuration)
- Internet Explorer-OUT OF ORDER + More (Viruses, Spyware and other Nasties)
- can't link to included files... y? (C++)
- Working with array of files (C++)
- Need Help for DNS Problem and 'about:blank' Problem ... (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: BackgroundImage for Control
- Next Thread: reading from serial port way too slow (C++)
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






