确保你的项目Makefile中包含 /usr/local/lib/liblog4cplus.a(静态库)或 -llog4cplus(动态库)即可,头文件在/usr/local/include/log4cplus目录下。cd log4cplus-x.x.x
./configure --prefix=/usr/local
make
sudo make install
ldconfig (新库安装后,刷新ld cache,以使程序在runtime链接得到所需的新库)
确保你的项目Makefile中包含 /usr/local/lib/liblog4cplus.a(静态库)或 -llog4cplus(动态库)即可,头文件在/usr/local/include/log4cplus目录下。
linux下安装log4cplus
猜你喜欢
转载自blog.csdn.net/suixiangzhe/article/details/80450792
今日推荐
周排行