Menu

how can I compile on windows / cygwin? errors

e.orhan
2017-12-11
2017-12-17
  • e.orhan

    e.orhan - 2017-12-11

    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
    
     
  • Alexander Perepelkin

    Hello,

    What are your cygwin version and entered commands to get that error?

     

Log in to post a comment.