Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
0.10.0
-
None
-
None
-
g++ 3.4.3 , Redhat Linux AS4
Description
When i tried to compile the log4cxx source, it is giving the compilation error while compiling trivial.cpp
then i tried
~$ rm src/examples/trivial.o
~$ rm src/examples/trivial
~$ make CXXFLAGS=-E check
~
~That should create a trivial.o which is the preprocessor output and ~not actually an object file. Rename and attempt to compile this file ~to see if you get the same errors:
~
~$ cd src/examples/cpp
~$ mv trivial.o test.cpp
~$ gcc -c test.cpp
still getting the same error :
[ramak@facts158 cpp]$ gcc -c test.cpp
trivial.cpp: In function `int main()':
trivial.cpp:30: error: `BasicConfigurator' has not been declared
trivial.cpp:30: error: `configure' undeclared (first use this function)
trivial.cpp:30: error: (Each undeclared identifier is reported only once for each function it appears in.)
trivial.cpp:33: error: `NDC' has not been declared
trivial.cpp:33: error: `push' undeclared (first use this function)
trivial.cpp:41: error: `NDC' has not been declared
trivial.cpp:41: error: `pop' undeclared (first use this function)