Error: In file included from PThreads.cpp:10:0:
../include/log4cpp/threading/MSThreads.hh:101:36: error: redefinition of 'class log4cpp::threading::ThreadLocalDataHolder<T>'
template<typename T=""> class ThreadLocalDataHolder {
^~~~~~~~~~~~~~~~~~~~~
In file included from ../include/log4cpp/threading/Threading.hh:30:0,
from PThreads.cpp:9:
../include/log4cpp/threading/PThreads.hh:76:36: error: previous definition of 'class log4cpp::threading::ThreadLocalDataHolder<T>'
template<typename T=""> class ThreadLocalDataHolder {
^~~~~~~~~~~~~~~~~~~~~
PThreads.cpp: In function 'std::string log4cpp::threading::getThreadId()':
PThreads.cpp:23:16: error: '::asprintf' has not been declared
int size = ::asprintf(&buff_alloc, "%lu",(long unsigned int) pthread_self()); // thread id unsigned
how can I solve this problem?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Error: In file included from PThreads.cpp:10:0:
../include/log4cpp/threading/MSThreads.hh:101:36: error: redefinition of 'class log4cpp::threading::ThreadLocalDataHolder<T>'
template<typename T=""> class ThreadLocalDataHolder {
^~~~~~~~~~~~~~~~~~~~~
In file included from ../include/log4cpp/threading/Threading.hh:30:0,
from PThreads.cpp:9:
../include/log4cpp/threading/PThreads.hh:76:36: error: previous definition of 'class log4cpp::threading::ThreadLocalDataHolder<T>'
template<typename T=""> class ThreadLocalDataHolder {
^~~~~~~~~~~~~~~~~~~~~
PThreads.cpp: In function 'std::string log4cpp::threading::getThreadId()':
PThreads.cpp:23:16: error: '::asprintf' has not been declared
int size = ::asprintf(&buff_alloc, "%lu",(long unsigned int) pthread_self()); // thread id unsigned
Hello,
What are your cygwin version and entered commands to get that error?