linux下动态链接库和静态链接库的使用和区别
字面意思上来看,一看是在程序运行的时候动态链接。而另一个是在编译的时候静态链接。
考虑下面的3个文件,hello.c,hello.h,main.c
hello.h
#ifndef _HELLO_H
#define _HELLO_H
void hello();
#endifhello.cpp
#include
using namespace std;
void hello()
{
c
原创
2016-07-21 15:45:59 ·
589 阅读 ·
0 评论