Mat
http://www.cplusplus.com/reference/string/stoi/
That's the doc for std::stoi ;) internet is your friend
BinaryByter
That's the doc for std::stoi ;) internet is your friend
newbies don't know that internet is their friend
BinaryByter
And even some halfway-decent coders don't know taht
.
Hey does any one know CPP?
.
Does anyone know a remedy?
Dima
lolllll
BinaryByter
how did you call your file?
BinaryByter
c##.cpp?
BinaryByter
dafaq?
BinaryByter
error #1: you use windoze
.
I am beginner bro
BinaryByter
error #2: STOP IT WITH THOSE SHIT FILENAMES
.
error #2: STOP IT WITH THOSE SHIT FILENAMES
I wrote a sample to show the issue
BinaryByter
lol
Ибраги́м
https://github.com/nholthaus/units
BinaryByter
could it be that you are trying to execute a text file?
BinaryByter
or that you don't have a compiler?
Bader
Hm... Don't
why's that?
klimi
his videos doesnt work with gcc
klimi
thats the first reason
klimi
the second reason is that his videos are so stupid and ... its not how you do it
Bader
yea he uses vs in windows
klimi
+ i asked ppl on his discord wtf is his video wrong and they said they know ... and to do it myself
BinaryByter
So many crackpots in this group
Bader
i would just copy over on mac using gcc lol
Dima
wtfff happened to the codersss
Dima
Bader
the second reason is that his videos are so stupid and ... its not how you do it
I found his explainations super useful, the ones about the compiler, linker etc. I also read other sources and the info matched up
klimi
im not saying everyvideo is bad
Bader
oh yeah for sure
klimi
but his series about the opengl
klimi
and this
Bader
't get into opengl (yet!), just mostly lot's of foundational stuff :)
klimi
okay
klimi
ii had problems with his solutions ... but most stuff works
Bader
cool cool... and I try to make sure I read docs as well
klimi
oh
klimi
nice
Bader
just to be super safe haha
Bader
and sometimes SOF answers are good too
Bader
*not to copy code*
klimi
you're good
Bader
👍
Bader
haha yesterday I realized I used linux compiled libraries and those don't work on macos apparently
Bader
i tried to link them to my project but no go haha. found out they're incompatible, ELF on Linus vs MACH-O on Macos
Bader
and actually that's what gcc complained about, it couldn't read the contents of the file
klimi
lol
Bader
yeah I basically just facepalmed prettty hard lol
Bader
just gonna compile it all myself
Dima
I am talking about the one who tries to open text file as executable
Dima
Dima
I know, newbie stuff but that made me laugh
Dima
no hate
Bader
👍
.
Remedy to what?
How to remove that?
.
The CMD error msg that it is not a internal command
.
It come when I run a CPP program
Mat
How do you run it and what are you trying to run?
Mat
After the compiling you should have a .exe file
.
What complier you use
.
?
Mat
Which compiler do you use?
.
Mingw Gcc
Anonymous
https://github.com/nholthaus/units
Anonymous
A lot of nice cpp libs here: https://github.com/topics/cpp14
Ибраги́м
Mingw Gcc
Add clang to it.
Ибраги́м
And then
Add Clang to the list of the compiler you u use
.
Will it solve the issue
.
?