Visual Studio 2019制作 C/C++<lib>库 并使用
看图+文字操作,不要修改其他文件静态库制作静态库使用正在更新中。。。
静态库制作
头文件代码页 test.h
#pragma once
#ifndef _TEST_H_
#define _TEST_H_
int add(int a, int b);//计算a和b两数相加
int sub(int a, int b);//计算a和b两数相减
#endif
源文件代码页 test.cpp
#include "test.h"
int add(int a, int b)
{
return a + b
原创
2020-08-30 23:22:00 ·
758 阅读 ·
0 评论