eclipse中静态链接库的 链接

来源:互联网 发布:excel重复数据筛选 编辑:程序博客网 时间:2024/05/20 03:47

 Project->Properties->C/C++ Build->Settings->GCC C++ Linker->Libraries
在Libraries(-l)中添加pthread即可
在Libraries(-l)中添加crypto即可

在想要编译的工程上右键/properties选择c/c++ build/settings
gcc c compiler/command :gcc -lpthread
gcc c linker/command :gcc -lpthread

 

 

 

原创粉丝点击