Re: [Log4cplus-devel] is msvc7 (.net) compiler supported ...
Logging Framework for C++
Brought to you by:
wilx
From: Tad S. <tad...@mc...> - 2003-05-01 21:23:13
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> Could you try adding<br> "#include <log4cplus/spi/loggerimpl.h>" <br> to the configurator.cxx file to see if the errors go away?<br> <br> -- Tad<br> <br> Vogele, Jochen wrote:<br> <blockquote type="cite" cite="mid...@sv..."> <meta http-equiv="Content-Type" content="text/html; "> <meta name="Generator" content="MS Exchange Server version 5.5.2653.12"> <title>is msvc7 (.net) compiler supported ...</title> <p><font size="2" face="Arial">Hello, </font> </p> <p><font size="2" face="Arial">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:</font></p> <p><font size="1" face="Courier New">------ Build started: Project: log4cplus_dll, Configuration: Release Win32 ------</font> </p> <p><font size="1" face="Courier New">Compiling...</font> <br> <font size="1" face="Courier New">threads.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">stringhelper.cxx</font> <br> <font size="1" face="Courier New">\OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\stringhelper.cxx(61) : warning C4244: '=' : conversion from 'log4cplus::tchar' to 'char', possible loss of data</font></p> <p><font size="1" face="Courier New">strftime.cxx</font> <br> <font size="1" face="Courier New">rootlogger.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">property.cxx</font> <br> <font size="1" face="Courier New">\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)</font></p> <p><font size="1" face="Courier New"> with</font> <br> <font size="1" face="Courier New"> [</font> <br> <font size="1" face="Courier New"> _Traits=std::_Tmap_traits<log4cplus::tstring,log4cplus::tstring,std::less<log4cplus::tstring>,std::allocator<std::pair<const log4cplus::tstring,log4cplus::tstring>>,false></font></p> <p><font size="1" face="Courier New"> ]</font> <br> <font size="1" face="Courier New">pointer.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">patternlayout.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">\OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\patternlayout.cxx(467) : warning C4018: '<' : signed/unsigned mismatch</font> <br> <font size="1" face="Courier New">\OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\patternlayout.cxx(500) : warning C4018: '<' : signed/unsigned mismatch</font> <br> <font size="1" face="Courier New">\OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\patternlayout.cxx(501) : warning C4244: '=' : conversion from 'wchar_t' to 'char', possible loss of data</font></p> <p><font size="1" face="Courier New">objectregistry.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">nteventlogappender.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">ndc.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">loglog.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">loglevel.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">loggerimpl.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">logger.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">layout.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">hierarchy.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">\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)</font></p> <p><font size="1" face="Courier New"> with</font> <br> <font size="1" face="Courier New"> [</font> <br> <font size="1" face="Courier New"> _Traits=std::_Tmap_traits<log4cplus::tstring,log4cplus::Hierarchy::ProvisionNode,std::less<log4cplus::tstring>,std::allocator<std::pair<const log4cplus::tstring,log4cplus::Hierarchy::ProvisionNode>>,false></font></p> <p><font size="1" face="Courier New"> ]</font> <br> <font size="1" face="Courier New">fileappender.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">factory.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">consoleappender.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">configurator.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">\OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\configurator.cxx(243) : warning C4018: '<' : signed/unsigned mismatch</font> <br> <font size="1" face="Courier New">..\include\log4cplus\helpers\pointer.h(174) : error C2027: use of undefined type 'log4cplus::spi::LoggerImpl'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\logger.h(34) : see declaration of 'log4cplus::spi::LoggerImpl'</font> <br> <font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\xmemory(136) : while compiling class-template member function 'void log4cplus::helpers::SharedObjectPtr<T>::init(void)'</font></p> <p><font size="1" face="Courier New"> with</font> <br> <font size="1" face="Courier New"> [</font> <br> <font size="1" face="Courier New"> T=log4cplus::spi::LoggerImpl</font> <br> <font size="1" face="Courier New"> ]</font> <br> <font size="1" face="Courier New"> \OpenDir\CPP\log4j_cpp\log4cplus-0.9.3\src\configurator.cxx(196) : see reference to class template instantiation 'log4cplus::helpers::SharedObjectPtr<T>' being compiled</font></p> <p><font size="1" face="Courier New"> with</font> <br> <font size="1" face="Courier New"> [</font> <br> <font size="1" face="Courier New"> T=log4cplus::spi::LoggerImpl</font> <br> <font size="1" face="Courier New"> ]</font> <br> <font size="1" face="Courier New">..\include\log4cplus\helpers\pointer.h(174) : error C2227: left of '->addReference' must point to class/struct/union</font> <br> <font size="1" face="Courier New">..\include\log4cplus\helpers\stringhelper.h(57) : warning C4018: '<' : signed/unsigned mismatch</font> <br> <font size="1" face="Courier New"> \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</font></p> <p><font size="1" face="Courier New"> with</font> <br> <font size="1" face="Courier New"> [</font> <br> <font size="1" face="Courier New"> _StringType=log4cplus::tstring,</font> <br> <font size="1" face="Courier New"> _Elem=wchar_t,</font> <br> <font size="1" face="Courier New"> _Traits=std::char_traits<wchar_t>,</font> <br> <font size="1" face="Courier New"> _Ax=std::allocator<wchar_t>,</font> <br> <font size="1" face="Courier New"> _Container=std::vector<log4cplus::tstring,std::allocator<log4cplus::tstring>></font> <br> <font size="1" face="Courier New"> ]</font> <br> <font size="1" face="Courier New">Generating Code...</font> <br> <font size="1" face="Courier New">Compiling...</font> <br> <font size="1" face="Courier New">appenderattachableimpl.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">appender.cxx</font> <br> <font size="1" face="Courier New">..\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'</font></p> <p><font size="1" face="Courier New"> C:\Programme\Microsoft Visual Studio .NET\Vc7\include\stdexcept(137) : see declaration of 'std::runtime_error'</font> <br> <font size="1" face="Courier New"> ..\include\log4cplus\helpers\pointer.h(33) : see declaration of 'log4cplus::helpers::NullPointerException'</font> <br> <font size="1" face="Courier New">Generating Code...</font> </p> <p><font size="1" face="Courier New">log4cplus_dll - 3 error(s), 27 warning(s)</font> </p> <br> <p><font size="1" face="Courier New">---------------------- Done ----------------------</font> </p> <p><font size="1" face="Courier New"> Build: 0 succeeded, 1 failed, 0 skipped</font> </p> <br> <br> <p><font size="2" face="Arial">am i doing something wrong or is this compiler version not supported. Any ideas, suggestions,</font> </p> <p><font size="2" face="Arial">thanx,</font> <br> <font size="2" face="Arial">Jochen</font> </p> <br> <p align="center"><b><font size="2" face="Arial">Jochen Vogele</font></b></p> <p align="center"><font size="1" face="Arial">Software Developer, Team Point of Sale</font></p> <p align="center"><b><font color="#ff0000" size="1" face="Arial">Media</font><font size="1" face="Arial"> </font><font color="#000080" size="1" face="Arial">Saturn</font><font size="1" face="Arial"> Systemzentrale GmbH</font></b></p> <p align="center"><font size="1" face="Arial">Tel.: +49 (0)841 634-2028</font></p> <p align="center"><a href="mailto:vo...@me..."><u><font color="#0000ff" size="1" face="Arial">mailto:vo...@me...</font></u></a></p> <p align="center"><font size="1" face="Courier New">give the most boring things to do to the laziest people, they come up with the fastest n the most innovative solution</font></p> <br> </blockquote> <br> </body> </html> |