Every Project I make fails to build with an "object reference not set to instance of object" error

  • Thread starter Thread starter Urto
  • Start date Start date
U

Urto

Guest
I've decided to start learning C++ and since I'm already familiar with Visual Studio 2017 for sake of C#, I decided to stick with it for C++.

Unfortunately, every single project I make fails to build with the output window displaying:

1>------ Build started: Project: TestTwo, Configuration: Debug Win32 ------
1>Object reference not set to an instance of an object.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


This particular project began as an Empty C++ Project, and is a basic "Hello World" program.
Below is the entirety of the code, which is all contained in the Main.cpp file, the only file in the entire solution aside from the default external dependencies.


#include <iostream>

int main()
{
std::cout << "Hello World!" << std::endl;
std::cin.get();
}
It's not this project alone, either. Even if I make a new console project and make no edits whatsoever to the project, I get the same error.



The error list is completely empty as well, offering no greater insight as to what the issue is. At this point, I've been banging my head against this for hours and am completely stumped. Any help would be appreciated.

Continue reading...
 
Back
Top