Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-219

suspicious warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • None
    • None
    • MS Windows XP
      MS Visual Studio 8 SP1
      apache-ant-1.7.0

    Description

      I get this bug at revision 598875 - I just can't build more new revision because of LOGCXX-218.

      I maked a very simple Win32 console application:

      ===
      #include "stdafx.h"

      #include <log4cxx/logger.h>

      int _tmain(int argc, _TCHAR* argv[])
      {
      return 0;
      }
      ===

      But even this simple application produce a lot of warning:

      ===
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\appenderattachableimpl.h(46) : warning C4251: 'log4cxx::helpers::AppenderAttachableImpl::appenderList' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::AppenderAttachableImpl'
      with
      [
      _Ty=log4cxx::AppenderPtr
      ]
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\appenderattachableimpl.h(111) : warning C4250: 'log4cxx::helpers::AppenderAttachableImpl' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::addRef' via dominance
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\objectimpl.h(33) : see declaration of 'log4cxx::helpers::ObjectImpl::addRef'
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\appenderattachableimpl.h(111) : warning C4250: 'log4cxx::helpers::AppenderAttachableImpl' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::releaseRef' via dominance
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\objectimpl.h(34) : see declaration of 'log4cxx::helpers::ObjectImpl::releaseRef'
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\resourcebundle.h(83) : warning C4251: 'log4cxx::helpers::ResourceBundle::parent' : class 'log4cxx::helpers::ObjectPtrT<T>' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::ResourceBundle'
      with
      [
      T=log4cxx::helpers::ResourceBundle
      ]
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\logger.h(75) : warning C4251: 'log4cxx::Logger::level' : class 'log4cxx::helpers::ObjectPtrT<T>' needs to have dll-interface to be used by clients of class 'log4cxx::Logger'
      with
      [
      T=log4cxx::Level
      ]
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\logger.h(80) : warning C4251: 'log4cxx::Logger::parent' : class 'log4cxx::helpers::ObjectPtrT<T>' needs to have dll-interface to be used by clients of class 'log4cxx::Logger'
      with
      [
      T=log4cxx::Logger
      ]
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\logger.h(86) : warning C4251: 'log4cxx::Logger::resourceBundle' : class 'log4cxx::helpers::ObjectPtrT<T>' needs to have dll-interface to be used by clients of class 'log4cxx::Logger'
      with
      [
      T=log4cxx::helpers::ResourceBundle
      ]
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\logger.h(92) : warning C4251: 'log4cxx::Logger::aai' : class 'log4cxx::helpers::ObjectPtrT<T>' needs to have dll-interface to be used by clients of class 'log4cxx::Logger'
      with
      [
      T=log4cxx::helpers::AppenderAttachableImpl
      ]
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\logger.h(633) : warning C4250: 'log4cxx::Logger' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::addRef' via dominance
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\objectimpl.h(33) : see declaration of 'log4cxx::helpers::ObjectImpl::addRef'
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\logger.h(633) : warning C4250: 'log4cxx::Logger' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::releaseRef' via dominance
      d:\program files\development\libraries\log4cxx\log4cxx-rev598875\include\log4cxx\helpers\objectimpl.h(34) : see declaration of 'log4cxx::helpers::ObjectImpl::releaseRef'
      ===

      Maybe I get these warnings because of incorrect log4cxx distribution - I didn't find target "dist" and just make svn export for main\include\log4cxx.

      What I'm doing wrong?

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            alexsoftdev Alexander E. Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: