CodeBlocks使用第三方库(以使用pcre库为例)
CodeBlocks使用第三方库
————以使用pcre库为例
作者:孤独草原狼
1.找到编译好的pcre库目录:
2.到CB中设置全局变量:Settings-->Global variables
3.设置项目搜索路径:Project-->Build options
先设置Search directories下的选项:
接下来设置Linker Settings选项:
4.设置完毕,然后编译运行:
注意:使用pcre库时要添加 #define PCRE_STATIC 这个宏,否则编译出错。
posted on 2015-06-23 10:45 CodeNutter 阅读(705) 评论(0) 编辑 收藏 举报