Wish this got recommended 72 hours ago! I spent 4 hours trying to configure my CMake file in order to use a 3rd party library. Ended up doing the same thing as you!
How tf did I not find this video 2 months ago when deciding which one to learn cpp or java... going back to cpp thanks to this single video! You won't belive how much I needed this video lol
never before had I been stuck on a programming hurdle for 3 days straight. I can finally continue my C++ journey after watching your video. There is no good tutorial on how to statically include C++ libraries using cmake other than yours.
Cpp has been widely used for years and people still havent managed to create an straightforward package manager like cargo or npm, that sucks, if I didnt need to use winAPI and some cpp libraries I would NEVER touch this language, the ergonomics are just so bad
Finally normal explanation. I spent a lot of time trying to setup g++ to compile a project of mine couple months ago that used gtk for GUI. Ended up with adding some unix util that produced list of libraries that are linked to compiler.
This was a great video, and honestly, everything I needed. Now I know exactly why my C++ code has been acting funny. My code editor doesn't know the path to the header files! Also thanks for the explanation of the folder contents (SFML in your case). Cleared up a great deal for me.
this is so helpful, i quite knew much of the explained but it clarified a lot more. anyway i'm surprised no mention of the linker, it makes most of the magic (and when we talk about libraries most of the errors!)
Two very useful videos: * Using static libraries: ua-cam.com/video/or1dAmUO8k0/v-deo.html * Using dynamic libraries: ua-cam.com/video/pLy69V2F_8M/v-deo.html
There isn't really a "best" program, a lot of it depends on what you prefer. :) - If you are new I would recommend using an IDE like "Visual Studio 2019" or "CLION", since it handles a lot of the confusing elements. I have used Visual Studio for a few years, and it works great. I am currently using the Text Editor "Visual Studio Code", and some extensions for programming c++ with cmake, mostly because I find it easier to get an overview that way (it is more tricky to setup though). - When it comes to libraries it really depends a lot on what you want to do. And you will more than likely need multiple libraries when working with more complex programs. One I often use is SFML, it is a multi media library that makes it relatively easy to do certain things, like graphics, audio and networking. It is handy to know how to use at least, and it has a very forgiving license, and pretty good documentation. (it is also the library I used as an example in the video) - Very glad you liked the video, thank you. :)
Linux(all of it) is the best for coding, any of the major distributions will work fine, the differences are small [Suse-leap, Debian, Mint, Fedora, Arch, etc]. Linux has most of the tools all packaged and ready to go. Windows just makes it mysterious and complicated so everyone on Windows uses an IDE. On Linux I use a nice text editor like kwrite, and for C++ I manually compile in a terminal window ( example: clang++ main.cpp -o myExecutable [-o means output name, and you can use g++ in place of clang++]) Another example: Python is default included with all of the major distributions so all you need is to type `python3` in a terminal and you will get interactive python. Or use any text editor save the file and run it with `python3 myPythonFile ` (Or for an executable file, change file permissions to executable, make the first line of the script `#!/usr/bin/env python3` and run it with `//myPythonFile` )
In python, I can just use pip install... it can download all it's dependencies now, I got stuck in c++ That I need to build it what I'm trying to install is PCL
Important to note; EVERYTHING is possible without libraries. A better word would be it isn’t FEASIBLE when things that are probably better than yours are already out there.
written a program But while compiling it shows that (error) studio. h:No such file or directory compliation terminated Is displaying Any solution What to do I am unable to understand
So I should have just used vcpkg from the start huh Someone recommended me to use WSL for C but I could never get SFML to work in it -.- Now I'm with CLion and got it nearly working haha SOOOOO much frustration around this that just made me wanna give up
How to include sub-directories in Visual Studio? I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2013 edition) to set one include path that Visual Studio will search also the sub-directories for header files? My Project is in C/C++. Add the "base folder" to the project (project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories") I have tried the above option but it is not possible for me to add each and every directory followed by a semicolon. I have total 60 + different C C++ sub-directories
Wish this got recommended 72 hours ago! I spent 4 hours trying to configure my CMake file in order to use a 3rd party library. Ended up doing the same thing as you!
How tf did I not find this video 2 months ago when deciding which one to learn cpp or java... going back to cpp thanks to this single video! You won't belive how much I needed this video lol
Java is awful.
python: laughing. . . . .
@@sahilbaori9052 false
@@mister-ace True
you just don't understand java
never before had I been stuck on a programming hurdle for 3 days straight. I can finally continue my C++ journey after watching your video. There is no good tutorial on how to statically include C++ libraries using cmake other than yours.
Using C libraries is a painful experience that I would never wish on anyone
Too late 🥲
Cpp has been widely used for years and people still havent managed to create an straightforward package manager like cargo or npm, that sucks, if I didnt need to use winAPI and some cpp libraries I would NEVER touch this language, the ergonomics are just so bad
@@savagemode2150vcpkg works decently
vcpkg and its same as using pip
Too late bro I'm experiencing it
I have watched several tutorials on this topic but none has helped me that much as this! Thank you very much for this valuable tutorial
Finally normal explanation. I spent a lot of time trying to setup g++ to compile a project of mine couple months ago that used gtk for GUI. Ended up with adding some unix util that produced list of libraries that are linked to compiler.
This was a great video, and honestly, everything I needed. Now I know exactly why my C++ code has been acting funny. My code editor doesn't know the path to the header files! Also thanks for the explanation of the folder contents (SFML in your case). Cleared up a great deal for me.
that !!! nice comment
Thank you for making this so accessible for a dyslexic programmer! Keep the videos coming they are awesome!
this is so helpful, i quite knew much of the explained but it clarified a lot more. anyway i'm surprised no mention of the linker, it makes most of the magic (and when we talk about libraries most of the errors!)
Very good video. I've learned this stuff a while back but this is a very good refresher.
Thanks boss, you saved me from going crazy.
The content quality is so good! I can't believe your channel has only ~1.5k subs. Your channel will blow up soon. All the best ❤
This was an amazing video, Thank you very much! Also that frame at 0:21 perfectly depicts my experience so far haha.
Thanks for the video. The vivado screenshot gave me chills 😂
thx helped soooo much
Thank you for creating this video. This is extremely useful for me. Keep up the good work!
Very understandable. Thank you. Im new in the cpp business
Thanks for making this video 🧡
You have helped me and others immensely
very informative, i thought you'd have everything right away
Amazing video bro!
Two very useful videos:
* Using static libraries: ua-cam.com/video/or1dAmUO8k0/v-deo.html
* Using dynamic libraries: ua-cam.com/video/pLy69V2F_8M/v-deo.html
i didnt know that master oogwgay such good at programming! master, thank you
Thanks for the video, it was clearly explained!
Thanks a lot for this.
good vid mate
Great video, very helpful!
Thank you for the video!
This is a fantastic video. Subbing.
I subbed too.🎉
Yeah Thanks dude!!! You help me a lot!!
Thanks for the video
Whats the best program to use for C++ Coding , Do you recommend any Libraries? And the video was great thanks
There isn't really a "best" program, a lot of it depends on what you prefer. :) - If you are new I would recommend using an IDE like "Visual Studio 2019" or "CLION", since it handles a lot of the confusing elements. I have used Visual Studio for a few years, and it works great. I am currently using the Text Editor "Visual Studio Code", and some extensions for programming c++ with cmake, mostly because I find it easier to get an overview that way (it is more tricky to setup though). - When it comes to libraries it really depends a lot on what you want to do. And you will more than likely need multiple libraries when working with more complex programs. One I often use is SFML, it is a multi media library that makes it relatively easy to do certain things, like graphics, audio and networking. It is handy to know how to use at least, and it has a very forgiving license, and pretty good documentation. (it is also the library I used as an example in the video) - Very glad you liked the video, thank you. :)
@@MichaelForestTechnologies I'M HAVING PROBLEMS TO INSTALL DEAL II LIBRARY, DO YOU THING I CAN INSTALL THIS LIBRARY JUST WITH CMAKE IN WINDOWS ?
Linux(all of it) is the best for coding, any of the major distributions will work fine, the differences are small [Suse-leap, Debian, Mint, Fedora, Arch, etc]. Linux has most of the tools all packaged and ready to go. Windows just makes it mysterious and complicated so everyone on Windows uses an IDE.
On Linux I use a nice text editor like kwrite, and for C++ I manually compile in a terminal window ( example: clang++ main.cpp -o myExecutable [-o means output name, and you can use g++ in place of clang++])
Another example: Python is default included with all of the major distributions so all you need is to type `python3` in a terminal and you will get interactive python. Or use any text editor save the file and run it with `python3 myPythonFile `
(Or for an executable file, change file permissions to executable, make the first line of the script `#!/usr/bin/env python3` and run it with `//myPythonFile` )
this was such a good video!
Very helpful, thanks man
In python, I can just use pip install...
it can download all it's dependencies
now, I got stuck in c++
That I need to build it
what I'm trying to install is PCL
couldn't you go through CMake though?
amazing, thanks alot
Important to note; EVERYTHING is possible without libraries. A better word would be it isn’t FEASIBLE when things that are probably better than yours are already out there.
6:03 feel free **
THank you!
VHDL??? I FEEL YOUR PAIN BRO. SO LONGGGGGGGG
Thanks!
I Love you🤧
Oh my goodness thank you
Helpful
I'm trying to use vlc API and in the lib folder there are only .c files and .h files, what do I do with them?
written a program
But while compiling it shows that (error) studio. h:No such file or directory compliation terminated
Is displaying
Any solution
What to do I am unable to understand
Really awesome and well explained video, Thank you
Can you make a separate video or tutorial for SDL2 for VS code ?
Thank you
you can write a abstract of (creating library)?
So I should have just used vcpkg from the start huh
Someone recommended me to use WSL for C but I could never get SFML to work in it -.-
Now I'm with CLion and got it nearly working haha
SOOOOO much frustration around this that just made me wanna give up
Noice(the meme)
Thanks bro
Perfecto
👍
Bro,... I think you got something in your eye
do some libraries have incompatible functions?
that’s why we have the scope resolution operator, ::
No, you are completely wrong. ISS software is probably being written in js, because, why fucking not! awesome video btw, thanks
How to include sub-directories in Visual Studio?
I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2013 edition) to set one include path that Visual Studio will search also the sub-directories for header files?
My Project is in C/C++.
Add the "base folder" to the project (project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories")
I have tried the above option but it is not possible for me to add each and every directory followed by a semicolon.
I have total 60 + different C C++ sub-directories
It took me two minutes to register the subtites were in Dutch
That's fasinating, I did not configure them, and I don't speak Dutch haha,
doesn't work on mac
this would be good video if you werent louder in one ear than the other
Pls fix subtitles
This is a good tutorial and very helpful. But please try to speak slower and/or more articulated. Sometimes its hard to follow you.
666th sub :)
You sound like we got no hopes coding c++
digga vhdl ist gottlos
Thank you