Hallo!
I wounder if there is an active community, which is interested in some
improvements to keep log4cplus compatible with the actual MS IDE.
The following steps I had to perform to compile log4cplus in MS VS 2005
Express:
- Import the MDDev6 Projects
- Add the include path of MS PSDK to all projects
- Add the preprocessor definition _CRT_SECURE_NO_DEPRECATE to the
project properties. It would be better to write it in some header...
- In stringhelper.h add the following in line 122:
typedef std::output_iterator_tag itereator_category;
- In stringhelper.h change the two occurences of __value to value
- In timehelper.cxx and timehelper.h replace all ocurrences of long with
time_t. time_t in VS2005 isnt a long (32 bit) value. Its a 64 bit value.
- In timehelper.cxx and timehelper.h change the return type of setTime
from int to time_t.
With that changes it compiles without any errors. I'm not sure if that
changes have any effects on the functionality, because I just begin
using this library.
Hope it helps,
Torsten
|