#include issues

87 messages ยท Page 1 of 1 (latest)

fiery verge
#

hey im new to programming can someone help me fix my #include issues? ik it may sound dumb srry

halcyon lynxBOT
#

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 tips on how to ask a good question run !howto ask.

dire socket
fiery verge
#

it's not code tho it's just an external error

#

int main() {
    std::cout << "Hello World";
}



dire socket
#

either way you can't get help by posting nothing but a general statement :p

#

where does the error come from? #include <iostream>?

fiery verge
#

it says i need to update my includepath idk how tho

dire socket
#

what's your setup

#

OS/IDE/compiler

fiery verge
#

vscode

#

dude i sound dumb as hell don't i?

#

im sorry

dire socket
#

it's fine to be a beginner don't worry about it

#

and also don't be offended if you repeatedly get asked for specific details, you'll learn that wroking off assumptions is the best way to get shafted in solving a problem cat_up

#

okay so VS Code but what about the rest then?

#

your OS and compiler

fiery verge
#

windows

#

and idk what compiler

#

how do i check it

dire socket
#

lol have you installed one to begin with yamikek

#

vs code extensions are not enough on their own

fiery verge
#

shesh i may not have installed it

#

do i just choose one?

dire socket
#

my advice anyhow if you're beginning is straight up to use Visual Studio, not VS Code

fiery verge
#

bruh i thought they were the same thing ๐Ÿ’€

dire socket
#

Visual Studio is a full-blown IDE bundled with a compiler and a build system, whereas VS Code is "just" a text editor around which you build a setup that suits you and your specific needs, with a tailored workflow

mellow sandal
#

vs code is an editor where you write your code, while Visual Studio is an IDE with its own compiler (MSVC)

fiery verge
#

mh k ic

dire socket
#

the thing is at this stage of your learning, you don't have any specific needs nor do you require a specific workflow, so yeah better to use Visual Studio and get the out-of-the-box C++ experience

fiery verge
#

ok yea i get it

#

seems legit

dire socket
#

to sum it up: getting a C++ setup up and running is a tedious task and not suited for beginners, don't focus on it right now :p

mellow sandal
#

Or if you want something viable from terminal, try MinGW

fiery verge
#

python was way easier ;-;

#

i've heard of mingw yea

#

is it a complier?

dire socket
#

a suite of GNU tools re-written for windows to be specific

#

you can install gcc with it and use that as your compiler

#

not a road I'd go down in your case :p

fiery verge
#

aight aight

#

I'm installing vs

mellow sandal
#

You can also use CMake to make your life easier if you feel VS is too complex

dire socket
#

I'm not sure that makes anything easier, not at this point ๐Ÿ˜›

mellow sandal
#

well... If you just want to compile a single exec file, maybe this is easier ๐Ÿ˜

dire socket
#

Once you get comfortable with your tools and the compilation pipeline (including what can go wrong and how to fix it), then yeah CMake is a first-class choice of a build system

#

until that point I'd stick with VS ^^

fiery verge
#

ok thanks for the tips

#

vs seems like the best thing rn for me but i'll try to understand also other programs eventually

#

should i just go for another language instead of c++ maybe?

dire socket
#

not necessarily, why would you need to ^^

fiery verge
#

I've heard people saying it's not really beginner friendly

dire socket
#

it's a complex language and it has a steep learning curve but there's a reason many people use it

dire socket
fiery verge
#

i see your point i'll give it a shot ;) thx a lot

dire socket
#

other people on this server came from python too, with possibly limited programming experience if at all, and had trouble getting started but they made it ๐Ÿ‘

dire socket
fiery verge
#

i don't have any programming experience whatsoever i'm just trying to create a base for university i just feel like it would be too hard to follow otherwise

dire socket
#

sure

#

I might add that you should be careful in picking your learning resources

#

some of the top search results are straight up BS

#

unfortunately you can't know unless someone with a little experience takes a look at it and then tells you that it's shit

#

"shit" as in they make you build bad habits

fiery verge
#

it's a pretty big channel

dire socket
#

never heard of him ^^

mellow sandal
#

looks like an online-course

fiery verge
#

it's not bad at all

dire socket
#

his one-hour video on youtube seems reasonable to say the least

#

very long to build up to the beef of C++ but very detailed and factually not wrong and frequently updated

fiery verge
#

mh thanks man

#

i'll look into it

dire socket
#

(that being said, don't hesitate to post questions here too)

mellow sandal
halcyon lynxBOT
#

@fiery verge Has your question been resolved? If so, run !solved :)

fiery verge
#

Well thanks a lot guys for helping me

#

i really appreciate it

#

bye have a good day

#

:)

#

!solved