How To Import A C++ Library To Your Visual Studio Project

preview_player
Показать описание
Hey everyone, in this video I will show you guys how to import and use a external library in C++ for your visual studio project! I will go over the different ways of importing a library such as static linking and dynamic linking!

*MAKE SURE YOUR LIBRARIES ARCHITECTURE MATCHES WITH YOUR PROJECT (32-BIT, 64-BIT)*
Рекомендации по теме
Комментарии
Автор

The way you teach is amazing! You go over multiple avenues of approach to a topic, don't over complicate, explain literally everything as you go, and start from a great starting point (so that a viewer can get to the point you started at before beginning your video). Hats off to you! Please make more on topics that apply for generally all programs (like this one: Library inclusions).

micahwright
Автор

Very good explanation. Thanks a lot, C++ is so difficult, and this video made it a bit easier, thanks

carlosedubarreto
Автор

THANK UUUU OMMG I TRIED SO HARD FOR THIS AND THIS TUTORIAL HELPED ME A LOOOOTT O MY

dtorossyan
Автор

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

ajayjadhav
Автор

Bro you are a lifesaver thank you so muchhhh<3

best_vdits
Автор

If I've many lib files(in one folder) to include, do I have to specify its names one by one like you did in the video, or is there a better way?

hangli
Автор

why did you use <> instead of " " for the include?
what's the difference ?

dannymusta
Автор

I would be surprised if this works. IF you wish to import a DLL dynamically there are HMODULE handles where in you specify the DLL name to be loaded dynamically. While building the DLL, one eithers exports functions or classes and these are later imported by the executable using the Hmodule handle. If linking dynamically was so easy just by specifying the .dll.lib file in the additional includes, MSVS would never have this hmodule import export crap.

salimkhanpathan
Автор

in dynamic link, you didn't provide the file path, just the file name?

xyzant
Автор

what if the C++ libray needs the third party library?

xyzant