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) 编辑 收藏 引用