/************************************************************************************************/
VS2017创建静态库
1.打开VS2017 新建项目
#include "Slib.h"
void func_show()
{
printf("static library test\n");
printf("这里是静态库的测试文件\n");
}
int add_test(int a ,int b)
{
return (a + b);
}
#ifndef SLIB_H
#define SLB_H
#include <stdio.h>
void func_show();
int add_test(int a, int b);
#endif // !SLIB_H
/*
***********************************************************************************************/
VS2017使用静态库
/************************************************************************************************/
现在我们新建一个项目!!!!
一切都做完之后,点击运行进行,测试,即可!!!!