I ran into a rather odd error when using SocketAppenders.
 
I have a wrapper that has worked fine, no warnings, nothing until I added functionality for the SocketAppender..
 
Now I get what follows this..  Does anyone know the root of this (Other than SocketAppender.cpp.. :-))   BTW, VS.NET 2k3 is the build tool.
 
 
Compiling...
EventLogger.cpp
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketimpl.h(96) : warning C4251: 'log4cxx::helpers::SocketImpl::theClassSocketImpl' : class 'log4cxx::helpers::SocketImpl::ClassSocketImpl' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::SocketImpl'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketimpl.h(96) : see declaration of 'log4cxx::helpers::SocketImpl::ClassSocketImpl'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketinputstream.h(45) : warning C4251: 'log4cxx::helpers::SocketInputStream::theClassSocketInputStream' : class 'log4cxx::helpers::SocketInputStream::ClassSocketInputStream' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::SocketInputStream'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketinputstream.h(45) : see declaration of 'log4cxx::helpers::SocketInputStream::ClassSocketInputStream'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketinputstream.h(67) : warning C4251: 'log4cxx::helpers::SocketInputStream::socket' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::SocketInputStream'
        with
        [
            T=log4cxx::helpers::Socket
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketoutputstream.h(37) : warning C4251: 'log4cxx::helpers::SocketOutputStream::theClassSocketOutputStream' : class 'log4cxx::helpers::SocketOutputStream::ClassSocketOutputStream' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::SocketOutputStream'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketoutputstream.h(37) : see declaration of 'log4cxx::helpers::SocketOutputStream::ClassSocketOutputStream'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socketoutputstream.h(63) : warning C4251: 'log4cxx::helpers::SocketOutputStream::socket' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::SocketOutputStream'
        with
        [
            T=log4cxx::helpers::Socket
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socket.h(57) : warning C4251: 'log4cxx::helpers::Socket::theClassSocket' : class 'log4cxx::helpers::Socket::ClassSocket' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::Socket'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socket.h(57) : see declaration of 'log4cxx::helpers::Socket::ClassSocket'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\socket.h(120) : warning C4251: 'log4cxx::helpers::Socket::socketImpl' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::Socket'
        with
        [
            T=log4cxx::helpers::SocketImpl
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\thread.h(58) : warning C4251: 'log4cxx::helpers::Runnable::theClassRunnable' : class 'log4cxx::helpers::Runnable::ClassRunnable' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::Runnable'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\thread.h(58) : see declaration of 'log4cxx::helpers::Runnable::ClassRunnable'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\thread.h(74) : warning C4251: 'log4cxx::helpers::Thread::theClassThread' : class 'log4cxx::helpers::Thread::ClassThread' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::Thread'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\thread.h(74) : see declaration of 'log4cxx::helpers::Thread::ClassThread'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\thread.h(139) : warning C4251: 'log4cxx::helpers::Thread::runnable' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::Thread'
        with
        [
            T=log4cxx::helpers::Runnable
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\thread.h(140) : warning C4251: 'log4cxx::helpers::Thread::parentMDCMap' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'log4cxx::helpers::Thread'
        with
        [
            _Kty=log4cxx::String,
            _Ty=log4cxx::String
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(115) : warning C4251: 'log4cxx::net::SocketAppender::remoteHost' : class 'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class 'log4cxx::net::SocketAppender'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(123) : warning C4251: 'log4cxx::net::SocketAppender::os' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::net::SocketAppender'
        with
        [
            T=log4cxx::helpers::SocketOutputStream
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(128) : warning C4251: 'log4cxx::net::SocketAppender::theClassSocketAppender' : class 'log4cxx::net::SocketAppender::ClassSocketAppender' needs to have dll-interface to be used by clients of class 'log4cxx::net::SocketAppender'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(128) : see declaration of 'log4cxx::net::SocketAppender::ClassSocketAppender'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(273) : warning C4251: 'log4cxx::net::SocketAppender::connector' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::net::SocketAppender'
        with
        [
            T=log4cxx::net::SocketAppender::Connector
        ]
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::addRef' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(34) : see declaration of 'log4cxx::helpers::ObjectImpl::addRef'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::releaseRef' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(35) : see declaration of 'log4cxx::helpers::ObjectImpl::releaseRef'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::lock' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(36) : see declaration of 'log4cxx::helpers::ObjectImpl::lock'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::unlock' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(37) : see declaration of 'log4cxx::helpers::ObjectImpl::unlock'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::wait' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(38) : see declaration of 'log4cxx::helpers::ObjectImpl::wait'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::notify' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(39) : see declaration of 'log4cxx::helpers::ObjectImpl::notify'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\net\socketappender.h(274) : warning C4250: 'log4cxx::net::SocketAppender' : inherits 'log4cxx::helpers::ObjectImpl::log4cxx::helpers::ObjectImpl::notifyAll' via dominance
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\helpers\objectimpl.h(40) : see declaration of 'log4cxx::helpers::ObjectImpl::notifyAll'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\spi\repositoryselector.h(48) : warning C4251: 'log4cxx::spi::RepositorySelector::theClassRepositorySelector' : class 'log4cxx::spi::RepositorySelector::ClassRepositorySelector' needs to have dll-interface to be used by clients of class 'log4cxx::spi::RepositorySelector'
        c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\spi\repositoryselector.h(48) : see declaration of 'log4cxx::spi::RepositorySelector::ClassRepositorySelector'
c:\src\RMI\Public\libs\log4cxx-0.9.7\include\log4cxx\logmanager.h(46) : warning C4251: 'log4cxx::LogManager::repositorySelector' : class 'log4cxx::helpers::ObjectPtrT' needs to have dll-interface to be used by clients of class 'log4cxx::LogManager'
        with
        [
            T=log4cxx::spi::RepositorySelector
        ]
Creating library...
 

Reply via email to