Error Cannot Open Source File C
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting cannot open source file c++ visual studio ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Cannot Open Source File Visual Studio 2015
the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a c++ cannot open source file iostream minute: Sign up IntelliSense: cannot open source file “curl.h” in C++ up vote 2 down vote favorite 1 I am unable to compile my C++ project. IntelliSense: cannot open source file "curl.h" in C++ I tried adding that file to cannot open source file ccs the "Header Files" folder in Solution Explorer: no change. I was unable to add it to the "Source Files" folder. How can I fix this? c++ compiler-errors resource-files share|improve this question edited Oct 2 '11 at 22:29 bzlm 6,87034272 asked Oct 2 '11 at 1:08 user975017 23113 How are you including it in your source files/headers? –Amy Oct 2 '11 at 1:20 add a comment| 4 Answers 4 active oldest votes up vote 11 down vote Right click on your
Cannot Open Source File Stdio.h Visual Studio 2015
project select Properties Expand Configuration Properties Click on the VC++ Directories Add $(ProjectDir) into the "Reference Directories" item share|improve this answer answered Jun 30 '13 at 20:34 Jason Newland 16713 2 This, in most cases will fix intellisense errors for all header files –Jason Newland Jun 30 '13 at 20:35 It worked. Thanks! –deepdive Aug 26 '13 at 8:44 add a comment| up vote 5 down vote Under Visual Studio 2010/2012/2013 Right click on your project select Properties Expand Configuration Properties Click on the VC++ Directories Add the path to your file, as well as $(ProjectDir), into the "Reference Directories" item share|improve this answer edited Jan 28 '14 at 14:21 answered Oct 18 '11 at 2:13 Noah 9,674776134 1 Also works in VisualStudio 2012. –Delicia Brummitt Mar 26 '13 at 22:19 How do you add the "$(ProjectDir)" into the "Reference Directories". It wont let me enter anything into the textbox. –stackexchange12 Feb 4 '14 at 22:35 @stackexchange12, it should let you, you can also go to the drop down and modify from there –tatigo Mar 12 '14 at 15:18 add a comment| up vote 0 down vote If you've added the header file correctly, then sometimes intellisense can be corrupted and you will need to delete the .ncb file in you project. Once this is done, restart VS and see if this works. The .ncb file is the intellisense database file so if you delete thi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about cannot open source file header h hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask visual studio cannot open include file Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Visual Studio Cannot Open File
Join them; it only takes a minute: Sign up Error can not open source file “…” up vote 3 down vote favorite 1 I'm using VS2010 (downloaded via dreamspark) and although I can open the #include file by right http://stackoverflow.com/questions/7623980/intellisense-cannot-open-source-file-curl-h-in-c clicking on it and pressing on Open Document, it complains "Error can not open source file "..."" which seems rather absurd. I'm using Qwt with Qt this time around and I'm specifically having the problem for: #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/26838423/error-cannot-open-source-file-includelibcec-cec-h-in-visual-studio-2012 this site About Us Learn more about Stack Overflow the company Business Learn http://www.dreamincode.net/forums/topic/258649-error-cannot-open-source-file/ more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up cannot open Error: cannot open source file #include
Topic/Question Reply 11 Replies - 8436 Views - Last Post: 05 December 2011 - 09:49 PM Rate Topic: #1 igomez New D.I.C Head Reputation: -2 Posts: 32 Joined: 15-September 11 Error: Cannot open source file Posted 05 December 2011 - 09:10 PM #include "testApp.h" #include "Square.h" using namespace std; const int NUMBER_OF_CELLS = 10; Square grid[NUMBER_OF_CELLS][NUMBER_OF_CELLS]; Is This A Good Question/Topic? 0 Back to top MultiQuote Quote + Reply Replies To: Error: Cannot open source file #2 no2pencil Professor Snuggly Pants Reputation: 6362 Posts: 30,067 Joined: 10-May 07 Re: Error: Cannot open source file Posted 05 December 2011 - 09:13 PM Which one is the source file? Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #3 igomez New D.I.C Head Reputation: -2 Posts: 32 Joined: 15-September 11 Re: Error: Cannot open source file Posted 05 December 2011 - 09:13 PM I've created a Square class, and I'm trying create a Square array in a different file. But when I put #include "Square.h" it doesn't let me open the source file Square.h. Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #4 no2pencil Professor Snuggly Pants Reputation: 6362 Posts: 30,067 Joined: 10-May 07 Re: Error: Cannot open source file Posted 05 December 2011 - 09:13 PM Is square.h in the same directory as the code file? Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #5 igomez New D.I.C Head Reputation: -2 Posts: 32 Joined: 15-September 11 Re: Error: Cannot open source file Posted 05 December 2011 - 09:14 PM What code file? Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #6 no2pencil Professor Snuggly Pants Reputation: 6362 Posts: 30,067 Joined: 10-May 07 Re: Error: Cannot open source file Posted 05 December 2011 - 09:19 PM You posted code. The file that code came from. The code file you are attempting to compile. Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #7 igomez New D.I.C Head Reputation: -2 Posts: 32 Joined: 15-September 11 Re: Error: Cannot open source file Posted 05 December 2011 - 09:21 PM yes Was Th