>>I'm having problem compiling one of my projects with VS2005. The
>>problems arise with VS2005 (apparent?) inability to compile log4cpp.
[quoted text clipped - 6 lines]
>
> -cd
>>> I'm having problem compiling one of my projects with VS2005. The
>>> problems arise with VS2005 (apparent?) inability to compile log4cpp.
[quoted text clipped - 12 lines]
> the log4cpp dll and it would be a nightmare to strip it out and use
> another library ...
OK, that version is much closer to working. I had to make 2 changes to get
it to compile with VC 2005:
replace all occurrences of __value with something else: __value is
recognized as a keyword by the VC2005 compiler (the authors of log4cpp
should not have used it - all identifiers containing two consequetive
underscores are reserved to the implementation).
For the specific error you're seeing, insert the following line of code into
\include\log4cplus\helpers\stringhelper.h, line 123:
typedef std::output_iterator_tag iterator_category;
I didn't try testing the library, but it builds with those two changes.
-cd
Bit Byte - 04 Mar 2007 06:37 GMT
>>>>I'm having problem compiling one of my projects with VS2005. The
>>>>problems arise with VS2005 (apparent?) inability to compile log4cpp.
[quoted text clipped - 29 lines]
>
> -cd
Thanks for the quick response Carl - I'll make the modifications now and
then test it later with my apps - I'll let you know how it goes.