2014年3月20日

GCC 静态库和动态库[转载]

摘要: 来源:Linux社区 作者:firefoxbug//hello.c#include void print_hello(){ printf("HelloWorld ");}//main.c#include#include "hello.h"int main(){ print_hello(); printf("%d",HELLO); return 0;}//hello.h#define HELLO 9999void print_hello();其中 hello.c 和 main.c 在同一个目录下, hello.h在上一个目录。先生成 x 阅读全文

posted @ 2014-03-20 17:15 各各他 阅读(176) 评论(0) 推荐(0) 编辑

导航