Visual Studio Unable to start program. Visual Studio can not find the program specified

Hello everyone,
I recently downloaded visual studio and am trying to use it with opencv/c++. However, when trying to run some code, I keep getting an error. I have been trying to resolve it all week, to no avail. I have added the file correctly, added linker inputs, as well as many others solutions. Below are screenshots of the error, some error codes, and what I have added into the linker. This issue has been beyond frustrating, as I have not been able to get any work done, so any help with this problem would be MUCH appreciated!
2: /api/attachments/110423-image.png?platform=QnA
Hi Jeanine, here are my error messages. I have seen this doc before, but it does not fix my file not found error.
I think that if you fix "unexpected end-of-file found" and other code errors, then "file not found" will disappear.
If the code is too large to be shown, then maybe give a sample project (on OneDrive, GitHub, etc.) that demonstrates the issue.
Here is the code I am using. Sorry I have to use screenshots, it is too large to paste directly.
To check that other files are not altered, try removing the main function (but keep it in some place) and try a simple function:
int main(int argc, char** argv)
{
return 0;
}
Do not remove #include lines.
Do you still receive “unexpected end-of-file found”?
Unfortunately I am still getting the same result. The code and error messages can be seen below.
Try deleting the last #include line and check if the error persists, then delete another #include line, etc., until the error disappear.
Maybe you must delete and retype all of the lines manually.
This did not work either. Is there something wrong with the way I set up the program or something?
Do you mean that the same error persists even if the file contains the next four lines only?
int main(int argc, char** argv)
{
return 0;
}
Unfortunately yes.
If you have time, you can also remove the first line.
Same result as before.
@Harper
I suggest you could try to create a new console project, and then check whether it can be built successfully?
I just created a new Console App project instead of an Empty project, and the hello world test did run successfully. However, when trying to run any other type of code, I get an error as can be seen below.
If you are interested, you can still prepare and give a short project (archive) that demonstrates these compilation or IntelliSense problems.
Sign in to comment
Activity