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 阅读(1163) 评论(1)  编辑 收藏 引用
只有注册用户登录后才能发表评论。

<2006年2月>
2930311234
567891011
12131415161718
19202122232425
2627281234
567891011

常用链接

留言簿(8)

随笔档案

相册

搜索

  •  

最新评论

阅读排行榜

评论排行榜