Jump to content

setting up VS

TheBean
Go to solution Solved by TheBean,

That worked. I just installed the Windows SDK and it started working. thanks @Moonzy anyway. 

I need visual studio community for my class. I installed it but I think there might have been some problems because I can't even run the default hello world without 411 errors. I think it might be because I didn't install some of the optional stuff checked by default but i'm not sure. 

 

Here is the default code I have:

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World!\n";
}

 

 

I installed the "Desktop Environment with C++" during the installer with the following optional packages:

  • MSVC v142 - VS 2019 C++ build tools ... (v14.27)
  • just in time debugger
  • live share
  • text template transformation
  • C# and visual basic compilers
  • C++ 2019 redist update
  • msbuild
  • c++ core features
  • intellicode
  •  

is there anything else I should have installed?

 

I am on windows 10 64bit

 

 

 

 

Edit: here is the error log:

 

image.thumb.png.20a1d0dbc7caf4923f8c9fa5595d5596.png

Link to comment
Share on other sites

Link to post
Share on other sites

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World!\n";
    return 0;
}

 try adding a return 0; at the end?

-sigh- feeling like I'm being too negative lately

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Moonzy said:

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World!\n";
    return 0;
}

 try adding a return 0; at the end?

I scrolled through the errors to see if I could find out anything. turns out, one of the errors mentioned the windows sdk (which I do not have installed). 

I will update you once its installed. 

Link to comment
Share on other sites

Link to post
Share on other sites

but yea, you should add a return 0 at the end because your main function type is int

some softwares help you add it, but it's a good habit

-sigh- feeling like I'm being too negative lately

Link to comment
Share on other sites

Link to post
Share on other sites

11 hours ago, Saksham said:

I scrolled through the errors to see if I could find out anything. turns out, one of the errors mentioned the windows sdk (which I do not have installed). 

I will update you once its installed. 

Thats odd that the Windows SDK was not installed. I am almost positive that it should be installed along with the C++ extensions for VS. But that's good that you caught that. You did better than most at reading through the errors that the IDE gives you lol.

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
Share on other sites

Link to post
Share on other sites

10 hours ago, trag1c said:

Thats odd that the Windows SDK was not installed. I am almost positive that it should be installed along with the C++ extensions for VS. But that's good that you caught that. You did better than most at reading through the errors that the IDE gives you lol.

The only reason I caught that is because I unchecked many "optional" stuff the installer marked for me. So there was a high chance that the problem was there. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×