摘要: 转自:http://blog.chinaunix.net/space.php?uid=11585335&do=blog&id=2867003libtool常见于autoconf/automake,单独用的例子很少,所以我想仔细研究一下,为将来兄弟们看起来方便。一。libtool的作用offer a standard procedure for creating shared libraries on different platformslibtool 是一个通用库支持脚本,将使用动态库的复杂性隐藏在统一、可移植的接口中,也就是说,你可以通过如下所示的标准方法,在不同平台上创建 阅读全文
posted @ 2012-07-18 11:28 Leo Forest 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: 例子为匹配ip地址pcre库(perl正则)/* * gcc pcre.c -o pcrec -lpcre */#include <stdlib.h>#include <stdio.h>#include <string.h>#include <pcre/pcre.h>int is_match (const char *src, const char *pattern){ pcre *re; const char *error; int erroffset; int result; re = pcre_compile (pattern, /* th 阅读全文
posted @ 2012-07-18 11:21 Leo Forest 阅读(794) 评论(0) 推荐(0) 编辑