I am trying to integrate log4cxx-CVS with an application that uses stlport-4.6 on Linux (redhat es3) using g++ (3.2.3), however when I add the stlport support to the compile line, the build fails with "undefined reference" errors from the log4cxx library. I have rebuilt both log4cxx and stlport numerous times, as a test case I have used the BasicConfigurator example from the log4cxx documentation. This compiles and runs without the '-I../stlport/stlport' flag but fails with the below error when the flag is present. I can compile and run other applications using stlport with no problems. I have searched all bug/support archives for both log4cxx and stlport, the only documented issues that reference both libraries don't seem to be relevant. I'm now at a loss as to what to do. Can someone confirm if log4cxx-CVS is known to work with stlport-4.6 on Linux? Any suggestions for what may be wrong and how I can resolve the problem would be appreciated. I can include my test case source code and makefile if anyone has a suitable environment and is interested in running a build test. Thanks, David
Example Compile Failure: g++ -g -Wall -DLINUX -Wno-ctor-dtor-privacy -I../log4cxx/include -I../stlport/stlport -L../log4cxx/build/debug/shared -llog4cxx -o log4cxx_sample main.o com/foo/bar.o -L../stlport/lib -lstlport_gcc main.o(.text+0x97): In function `main': ../log4cxx/include/log4cxx/helpers/objectptr.h:88: undefined reference to `log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, _STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&, log4cxx::spi::LocationInfo const&)' main.o(.text+0x1a0): In function `main': /disk2/data/eclipse/workspace/log4cxx_sample/main.cpp:23: undefined reference to `log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, _STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&, log4cxx::spi::LocationInfo const&)' com/foo/bar.o(.text+0x87): In function `com::foo::Bar::doIt()': ../log4cxx/include/log4cxx/helpers/objectptr.h:88: undefined reference to `log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, _STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&, log4cxx::spi::LocationInfo const&)' collect2: ld returned 1 exit status make: *** [log4cxx_sample] Error 1
