Error Cannot Open Source File
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 cannot open source file visual studio 2015 more about Stack Overflow the company Business Learn more about hiring developers or
Cannot Open Source File Ccs
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Visual Studio Cannot Open Source File Iostream
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 Error can not open source file “…” up vote
Cannot Open Source File Header H
3 down vote favorite 1 I'm using VS2010 (downloaded via dreamspark) and although I can open the #include file by right 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 this site About Us Learn more visual studio cannot open file about Stack Overflow the company Business Learn more about hiring developers or posting ads visual studio cannot open include file with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow error c1083 cannot open include file 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 source file in visual studio 2015 up vote 0 down http://stackoverflow.com/questions/2974908/error-can-not-open-source-file vote favorite I am trying to compile OBS studio with this tutorial in windows using Visual Studio Community 2015. I have created a project in visual studio and copied the entire git repo into the project by dragging the files into the solution explorer. This project has dependencies on libav, x264, and curl. They are given as .lib, .dll, and header files. The problem is I keep getting "cannot open http://stackoverflow.com/questions/37246358/cannot-open-source-file-in-visual-studio-2015 source file". I have the the header files in a separate folder from the dll's and lib's (dll and lib are in the same folder). Under the project settings->VC++ Directories I added the include directory, and also added the library directory. Then I added the lib's specifically under Linker->input->additional Dependencies. Then I added the directory that contains the .dll files to the environment variable PATH. After all this, I still keep getting the same error, as well as a few other errors. Here is a screen shot of one source file that has the issue. These are my settings. For the path, I have tried with and without the trailing forward slash. c++ windows dll visual-studio-2015 share|improve this question asked May 16 at 3:39 cmacia06 4910 Make sure you are changing project setting for the same configuration as you build. I see Debug/Win32 and Debug/x86. Not sure if those the same. Check that include folder contain folder that is before / in the #include clause and this folder contain a file that you include. Physically. I mean go there and see if those exist. –Drop May 16 at 3:49 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted
in our main.cpp an error shows up Error: cannot open source file "Derivative.h". How can i fix this? Dec 9, 2012 at 5:05pm UTC Peter87 (7789) Do you have files called Derivative.h and Derivative.cpp? Sorry if this is a stupid question http://www.cplusplus.com/forum/beginner/87672/ but you make it sound like you have classes named Derivative.h and Derivative.cpp. Last edited on Dec 9, 2012 at 5:05pm UTC Dec 9, 2012 at 5:09pm UTC knnstarbuck (12) Yes i do have files Derivative.h and Derivative.cpp. Sorry for the confusion. Last edited on Dec 9, 2012 at 5:16pm UTC Dec 9, 2012 at 5:16pm UTC Chervil (5756) Check that the files are located in the same directory as your main.cpp. Then check (and double check) the exact spelling of the names, both the cannot open actual file, and the name stated in your program source code. Dec 9, 2012 at 5:18pm UTC knnstarbuck (12) What do you mean by the same directory? Because they are in the same folder as main.cpp. And open when main.cpp opens and the spelling of the names is exactally the same. Last edited on Dec 9, 2012 at 5:19pm UTC Dec 9, 2012 at 5:23pm UTC Chervil (5756) directory = folder Dec 9, 2012 at 5:26pm UTC knnstarbuck (12) So i have the Derivative.h and Derivative.cpp cannot open source in the same folder/directory and they are spelled the same but it still shows the error. Dec 9, 2012 at 6:08pm UTC adityamanglik (5) Check for the Case, prefer to use only one case for all the names in the code... Dec 9, 2012 at 6:24pm UTC knnstarbuck (12) Ok i got that figured out but now can someone tell me where i am wrong with my logic? The console asks for a char of 's' || 'c' || 't' || 'e' || 'n' || 'o' and if it is not one of these a while loop below shows up. But the while loop always implements even if it is one of those values. while (x != 's' || 'c' || 't' || 'e' || 'n' || 'o') { cout << "YOU BLEW IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << endl; cout << "Enter the correct function id (s=sin, c=cos, t=tan, e=sec, n=csc, o=cot): "; cin >> x; if (x == 's' || 'c' || 't' || 'e' || 'n' || 'o') { break; } } Dec 9, 2012 at 7:07pm UTC Chervil (5756) The first condition should look like this: (x !='s' && x !='c' && x !='t' && x !='e' && x !='n' && x !='o') and the second like this: (x == 's' || x =='c' || x =='t' || x =='e' || x =='n' || x =='o') Notice when you combine multiple tests using the not-equal operator !=, you need to use && rather than || Dec 9, 2012 at 7:14pm UTC knnstarbuck (12) Yes that wor