On Aug 24, 2004, at 5:15 PM, Sean Rohead wrote:
I am still confused. I am including windows' tchar.h before log4cxx/logger.h. Here's what windows' tchar.h looks like:
#ifndef _TCHAR_DEFINED #if !__STDC__ typedef wchar_t TCHAR; #endif #define _TCHAR_DEFINED #endif
Notice how it #defines _TCHAR_DEFINED. However, log4cxx/helpers/tchar.h
looks for TCHAR to be #defined:
#ifndef TCHAR typedef wchar_t TCHAR; #endif
Since windows has not #defined this, this results in a duplicate definition. I tried adding #define TCHAR to my code before including log4cxx/logger.h, but that just results in all uses of TCHAR being replaced by the preprocessor with the empty string.
Thanks!
Sean
Try defining _LOG4CXX_HELPERS_TCHAR_H which should suppress the log4cxx's tchar.h in its entirety.
