Загрузка...

Include c/cpp third party libraries in Vscode(windows) Msys2-Gcc

install c/cpp third party libraries using msys2 and include them in vs code . This works if compiler is gcc only. In this video fmt library is installed and used in cpp program. add "-l[libraryName]" like "-lfmt" in tasks.json file , include path cpp_properties. set c_cpp intellisenseEngine setting to "Tag Parser" for best intellisense. Note: I already install msys2 so skipping that step. 1.install msys2 from msys2.org and follow instruction from there. 2.Add bin folder of msys64\mingw64\bin (if you install 64bit version) to system variables path. Bin folder contains library dlls . 3.check if msys2 sucessfully installed by open its program. 4.search for any available libraries in msys2 website and install them , make sure you select correct version of library because the library must be compiled with your local compiler (like gcc compiler with mingw64). 5.The library files are then store include folder(header files), bin folder(dlls), lib folder( .a files) 6.using above them you can now include them in vs code (configure build tasks) 7.now you can also use cmake or makefile to include these libraries in your project (also static linking works if your libraries files are in same folder as your main project files). 8.working libraries SDL, GTEST, FMT,BOOST,..etc chapter: 00:10 install msys2 01:00 add msys2 path to system variables 01:35 fmt library installation 03:03 test fmt in vscode If you use Microsoft c/c++ compiler then watch this video : https://youtu.be/S-1m2dxbrlA

Видео Include c/cpp third party libraries in Vscode(windows) Msys2-Gcc автора Секреты Творческой Гениальности
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки