[Log4cplus-devel] is msvc7 (.net) compiler supported ...
Logging Framework for C++
Brought to you by:
wilx
From: Vogele, J. <Vo...@me...> - 2003-04-29 12:59:05
|
Hello, i tried to compile the project (converted to vc7 format) with the microsoft cv compiler version 7 (.Net) on a windows XP prof. machine, but the build failed with the following errors: ------ Build started: Project: log4cplus_dll, Configuration: Release Win32 ------ Compiling... threads.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' stringhelper.cxx \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\stringhelper.cxx(61) : warning C4244: '=' : conversion from 'log4cplus::tchar' to 'char', possible loss of data strftime.cxx rootlogger.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' property.cxx \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\property.cxx(150) : warning C4800: 'std::_Tree<_Traits>::size_type' : forcing value to bool 'true' or 'false' (performance warning) with [ _Traits=std::_Tmap_traits<log4cplus::tstring,log4cplus::tstring,std::less<lo g4cplus::tstring>,std::allocator<std::pair<const log4cplus::tstring,log4cplus::tstring>>,false> ] pointer.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' patternlayout.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\patternlayout.cxx(467) : warning C4018: '<' : signed/unsigned mismatch \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\patternlayout.cxx(500) : warning C4018: '<' : signed/unsigned mismatch \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\patternlayout.cxx(501) : warning C4244: '=' : conversion from 'wchar_t' to 'char', possible loss of data objectregistry.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' nteventlogappender.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' ndc.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' loglog.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' loglevel.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' loggerimpl.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' logger.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' layout.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' hierarchy.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\hierarchy.cxx(165) : warning C4800: 'std::_Tree<_Traits>::size_type' : forcing value to bool 'true' or 'false' (performance warning) with [ _Traits=std::_Tmap_traits<log4cplus::tstring,log4cplus::Hierarchy::Provision Node,std::less<log4cplus::tstring>,std::allocator<std::pair<const log4cplus::tstring,log4cplus::Hierarchy::ProvisionNode>>,false> ] fileappender.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' factory.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' consoleappender.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' configurator.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\configurator.cxx(243) : warning C4018: '<' : signed/unsigned mismatch ..\include\log4cplus\helpers\pointer.h(174) : error C2027: use of undefined type 'log4cplus::spi::LoggerImpl' ..\include\log4cplus\logger.h(34) : see declaration of 'log4cplus::spi::LoggerImpl' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\xmemory(136) : while compiling class-template member function 'void log4cplus::helpers::SharedObjectPtr<T>::init(void)' with [ T=log4cplus::spi::LoggerImpl ] \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\configurator.cxx(196) : see reference to class template instantiation 'log4cplus::helpers::SharedObjectPtr<T>' being compiled with [ T=log4cplus::spi::LoggerImpl ] ..\include\log4cplus\helpers\pointer.h(174) : error C2227: left of '->addReference' must point to class/struct/union ..\include\log4cplus\helpers\stringhelper.h(57) : warning C4018: '<' : signed/unsigned mismatch \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\configurator.cxx(225) : see reference to function template instantiation 'void log4cplus::helpers::tokenize(const _StringType &,std::basic_string<_Elem,_Traits,_Ax>::value_type,std::back_insert_iterator <_Container>,bool)' being compiled with [ _StringType=log4cplus::tstring, _Elem=wchar_t, _Traits=std::char_traits<wchar_t>, _Ax=std::allocator<wchar_t>, _Container=std::vector<log4cplus::tstring,std::allocator<log4cplus::tstring> > ] Generating Code... Compiling... appenderattachableimpl.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' appender.cxx ..\include\log4cplus\helpers\pointer.h(33) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'log4cplus::helpers::NullPointerException' C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error' ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException' Generating Code... log4cplus_dll - 3 error(s), 27 warning(s) ---------------------- Done ---------------------- Build: 0 succeeded, 1 failed, 0 skipped am i doing something wrong or is this compiler version not supported. Any ideas, suggestions, thanx, Jochen Jochen Vogele Software Developer, Team Point of Sale > Media Saturn Systemzentrale GmbH > Tel.: +49 (0)841 634-2028 > mailto:vo...@me... <mailto:vo...@me...> > give the most boring things to do to the laziest people, they come up with the fastest n the most innovative solution |