Thunder Bird
Communication & Improvement
posts - 47,  comments - 155,  trackbacks - 0

In member function ‘int log4cplus::thread::Guard::incorrect_use_of_Guard(**pthread线程库跟log4cplus冲突解决方法)

In file included from /usr/local/include/log4cplus/spi/loggingevent.h:31:0,

                 from /usr/local/include/log4cplus/layout.h:33,

                 from /usr/local/include/log4cplus/appender.h:27,

                 from /usr/local/include/log4cplus/spi/appenderattachable.h:27,

                 from /usr/local/include/log4cplus/logger.h:30,

                 from /usr/local/include/ppp/mylogutil.h:16,

                 from /home/libin/projects/xunuu_thrift_pagepreprocess/src/server/main.cpp:13:

/usr/local/include/log4cplus/helpers/threads.h:47:6: error: expected class-name before ‘(’ token

/usr/local/include/log4cplus/helpers/threads.h: In member function ‘int log4cplus::thread::Guard::incorrect_use_of_Guard(pthread_mutex_t*)’:

/usr/local/include/log4cplus/helpers/threads.h:41:11: error: only constructors take base initializers

log4cplus的线程库跟pthread的线程库冲突
解决方法:
将log4cplus的头文件放到pthread头文件前面
posted on 2012-06-14 15:38 Thunder 阅读(754) 评论(1)  编辑 收藏 引用
只有注册用户登录后才能发表评论。

<2015年8月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

常用链接

留言簿(7)

随笔档案

相册

搜索

  •  

最新评论

阅读排行榜

评论排行榜