Home > Enterprise >  {fmt} How to install and use fmtlib in Visual Studio?
{fmt} How to install and use fmtlib in Visual Studio?

Time:01-05

I am trying to install fmtlib and I have downloaded the zip folder and extracted it, what do I do next to use it in my Visual Studio 2022 project? Because it's my first time installing an external library. Im using windows 10.

CodePudding user response:

First, you have to build the lib with CMake, then you will get the .lib files. Then you simply add the Header files in the include folder to your project in Visual Studio and link the .lib files to your project like here described:

How to add additional libraries to Visual Studio project?

CodePudding user response:

I believe fmtlib is header only. You can just add the unzipped folder to your includes.

  •  Tags:  
  • Related