#coding in visual studio, over 400 errors for roughly 80 lines

1 messages · Page 1 of 1 (latest)

whole quail
#

I also have a warning, but have no idea what it means

slate iceBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

whole quail
#

Warning MSB8003 The WindowsSDKDir property is not defined. Some build tools may not be found.

whole quail
#

where is that, im completely new to visual studio

brisk tendon
undone tartan
#

Start with the first error then go from there

whole quail
#

Error (active) E1696 cannot open source file "ctype.h" 12

solid musk
#

did you install the "c++ development package" or whatever it's called in the installer?

whole quail
#

omg, i think i know what i did

#

cout is >> isn't it

solid musk
#

no, cout is <<

whole quail
#

oh

#

then nvm

solid musk
#

can you screenshot your installer window then?

whole quail
#

apparently it has an update

robust spear
#

Looks fine! There are only a few situations when this kind of error can appear, so we can go through them

#

MSVC (the compiler used by Visual Studio) can't find your standard library headers

whole quail
#

i might not have all the libraries i need

robust spear
#

You should have them

whole quail
#

i only have iostream rn

robust spear
#

I assure you you should have them available

whole quail
#

i mean i only did #include <iostream>

robust spear
#

Yyea, no worries :D

#

How did you create the project/try to compile the file? can you go step by step through the process ?

#

(with some screenshots)

whole quail
#

so far only debug

robust spear
#

(also are you using vs 2022 or 2019?)

whole quail
#

2022

robust spear
#

So, the best way to start is to go:

#

From top menu: File -> New -> Project

#

In the window that shows up, choose an Empty Project (C++, Windows, Console)

#

Give it some name, also tick this box

whole quail
robust spear
#

Hmm so here you are

whole quail
#

idk if i clicked that button, can't remember

robust spear
#

ohhhh now I get what the problem is

#

I didn't quite understand you ^^"

whole quail
#

ye, ive written my code (without classes just to check logic)

robust spear
#

OK so see in the installation menu you have downloaded "Windows Universal CRT SDK "

#

wait, no, it's not that

#

Make sure you have at least one Windows(yours) SDK and Windows Universal C Runtime

whole quail
#

its loading... slowly

robust spear
#

Yeah, for now I have to go to sleep though. I hope this one will help

#

Goodnight!

whole quail
#

It runs!

#

now to figure out how the classes are suppoorksed to w

#

work*

whole quail
#

!solved

slate iceBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] coding in visual studio, over 400 errors for roughly 80 lines

slate iceBOT
#

@whole quail

This question thread is being automatically marked as solved.