Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
-
None
-
None
Description
The current definition of the LOG4CXX_* macro's is dubious – these macro's can trigger unexpected compiler errors. The attached test program results in the following compiler output:
$ LC_ALL=C g++ -o conditional-logging -I/usr/local/include -Wall -Werror -W conditional-logging.cpp -L/usr/local/lib -llog4cxx
conditional-logging.cpp: In function 'int main(int, char**)':
conditional-logging.cpp:8: error: 'else' without a previous 'if'
Attachments
Attachments
Issue Links
- is duplicated by
-
LOGCXX-393 Strange compile error w/ log4cxx, version 0.10.0,gcc version 4.2.1 20070719 [FreeBSD]
- Resolved