CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    18

    compiling log4cplus in vc6

    Hi all,

    I compiled the log4cplus code in vc8 it compiled correctly and i can able to use it in vc8 projects, and then when i tried to use the dll in vc6 i got 2 unresolved functions... as usual i expected but i got only 2 out of 10 to 20 class definations. so i decided to compile the log4cplus in vc6 but i could not able to compile because of so many errors from c++ std library

    Example:
    e:\testprograms\log4cplus\helpers\stringhelper.h(148) : error C2977: 'iterator' : too many template arguments
    c:\program files\microsoft visual studio\vc98\include\utility(71) : see declaration of 'iterator'
    e:\testprograms\log4cplus\helpers\stringhelper.h(184) : see reference to class template instantiation 'log4cplus::helpers::string_append_iterator<Container>' being compiled
    e:\testprograms\loggingframework\src\configurator.cxx(350) : error C2065: 'remove_copy_if' : undeclared identifier
    e:\testprograms\log4cplus\helpers\stringhelper.h(148) : error C2977: 'iterator' : too many template arguments
    c:\program files\microsoft visual studio\vc98\include\utility(71) : see declaration of 'iterator'
    e:\testprograms\loggingframework\src\configurator.cxx(351) : see reference to class template instantiation 'log4cplus::helpers::string_append_iterator<class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::
    allocator<unsigned short> > >' being compiled

    so i could not able to use this log4cplus module in vc6.

    Please help me in using the log4cplus in vc6. u can download this module from

    http://log4cplus.sourceforge.net/

    thanks in advance

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,109

    Re: compiling log4cplus in vc6

    Perhaps, this log4cplus requires at least VS2005?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured