logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james <ldapmas...@yahoo.com>
Subject Help: build log4cxx failure
Date Fri, 08 Jul 2005 06:26:03 GMT
hi
   all
   I have cvs check out the newest code of  log4cxx
from cvs repository,and also with apr-1.1.1.tar.gz and
apr-util-1.1.2.tar.gz.
    Then , in logging-log4cxx path,
    1. ./autogen.sh
    2. ./configure  --prefix=/usr/local/log4cxx
--with-apr=/path_to/apr-1.1.1
--with-apr-util=/path_to/apr-util-1.1.2
    the above 2 steps are ok!
    3. make, but found a error:
=======================================================
In file included from
../include/log4cxx/logstring.h:21,
                 from
../include/log4cxx/helpers/object.h:20,
                 from
../include/log4cxx/helpers/objectimpl.h:20,
                 from
../include/log4cxx/rolling/action.h:21,
                 from action.cpp:17:
../include/log4cxx/log4cxx.h:28:5: "@" is not valid in
#if expressions
In file included from
../include/log4cxx/helpers/object.h:20,
                 from
../include/log4cxx/helpers/objectimpl.h:20,
                 from
../include/log4cxx/rolling/action.h:21,
                 from action.cpp:17:
../include/log4cxx/logstring.h:23:33: "@" is not valid
in #if expressions
../include/log4cxx/logstring.h:36:5: "@" is not valid
in #if expressions
make[1]: *** [action.lo] Error 1
========================================================
 ./include/log4cxx/logstring.h:
#ifndef _LOG4CXX_STRING_H
#define _LOG4CXX_STRING_H

#include <string>
#include <log4cxx/log4cxx.h>

#if LOG4CXX_LOGCHAR_IS_WCHAR &&
LOG4CXX_LOGCHAR_IS_UTF8
#error only one of LOG4CXX_LOGCHAR_IS_WCHAR and
LOG4CXX_LOGCHAR_IS_UTF8 may be true
#endif


namespace log4cxx {

#if LOG4CXX_LOGCHAR_IS_WCHAR
   typedef wchar_t logchar;
#define LOG4CXX_STR(str) L ## str

#endif

#if LOG4CXX_LOGCHAR_IS_UTF8
   typedef char logchar;
#define LOG4CXX_STR(str) str

#endif

   typedef std::basic_string<logchar> LogString;


}


#if !defined(LOG4CXX_EOL)
#if defined(_WIN32)
#define LOG4CXX_EOL LOG4CXX_STR("\x0D\x0A")
#else
#define LOG4CXX_EOL LOG4CXX_STR("\x0A")
#endif
#endif


#endif //_LOG4CXX_STRING_H


logstring.h has been 2 months old in cvs repository,
so  it may be find, but what worng?
Thanks! 






		
__________________________________ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

Mime
View raw message