I try to build C++11-project on OS X Lion (10.7.5) with clang++. All is fine, except one problem with log4cxx: after compiling I get these linker errors:
Linking CXX executable css.fcg
Undefined symbols for architecture x86_64:
  "log4cxx::FileAppender::FileAppender(log4cxx::helpers::ObjectPtrT<log4cxx::Layout> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
  "log4cxx::PatternLayout::PatternLayout(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
  "log4cxx::Level::toLevel(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
  "log4cxx::Logger::getLogger(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
  "log4cxx::Logger::info(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
  "log4cxx::Logger::warn(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
  "log4cxx::Logger::debug(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
  "log4cxx::Logger::error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
  "log4cxx::Logger::fatal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
  "log4cxx::Logger::trace(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
ld: symbol(s) not found for architecture x86_64
This is my clang++:
Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
I build project with flags -std=c++11 and -stdlib=libc++. Attempting to build project with Clang 3.2 didn't help.
Moreover, I've tried to install log4cxx library with port or with brew - same errors in both cases.
So what can I do?
 
    