| | |
Set the include path
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 |
action api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count createcopyofanyfileinc delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input insert int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node noob output parameter pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






