Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-297

Compiling Log4Cxx - trivial.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 0.10.0
    • None
    • Build
    • 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)

      Attachments

        1. test.cpp.gz
          74 kB
          Curt Arnold
        2. test.cpp.gz
          74 kB
          ramakrishnaraju
        3. trivial.o.gz
          123 kB
          Curt Arnold

        Activity

          People

            carnold@apache.org Curt Arnold
            srkr_swt ramakrishnaraju
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified