Compile static library in VS2019


1. Open vs2019, click File->New->Project, select "Empty Project" and click Next

 2. Configure the new project name and click Create

 3. Create a new library function file and add library functions

 

 

4. Modify the project configuration type
A) Select the project test under the solution
  B) Modify the configuration type to static library and click OK

 5. Generate static library
A) Compile

 B) Generate library location

 
When using library files, you can create and add related header files yourself.

 ​​​​​​​

Guess you like

Origin blog.csdn.net/poject/article/details/119815939