how to specify the compiler search path?(Visual Studio 2005)
-
I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!
-
I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!
Tools->Options->Projects and Solutions->VC++Directories Choose: "Show directories for: Include Files" Add your directories here.
Independent ACN Business Owner
- Check out the possibilities for your future!
- Financial independance
- Full time or Part time
- In more than 20 countries through North America, Europe, Asia and the Pacific
- Featuring the ACN IRIS 5000 video phone. See the person you are talking to.
Within you lies the power for good - Use it!
-
Tools->Options->Projects and Solutions->VC++Directories Choose: "Show directories for: Include Files" Add your directories here.
Independent ACN Business Owner
- Check out the possibilities for your future!
- Financial independance
- Full time or Part time
- In more than 20 countries through North America, Europe, Asia and the Pacific
- Featuring the ACN IRIS 5000 video phone. See the person you are talking to.
Within you lies the power for good - Use it!
It doesn't work. I have tried. I think I shoud specify the search path for compiler.
-
I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!
-
I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!
Falconapollo wrote:
Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory
The text of the error message is perfectly clear and tells you that the file excel.cpp cannot be found at that path. Why are you trying to include a source (.cpp) file in this way; you should add the file to your project (directly or indirectly) and build it as normal.
Unrequited desire is character building. OriginalGriff
-
I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!
The compiler will never search for cpp files, you have to add them explicitly to your project, see the solution pane. Either create them inside your project, or add them ("Add Existing Item") if they already exist. The one thing that gets looked for is header files (*.h), that is what all the "include" commands and directives are for. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum iSad