Index: include/log4cxx/log4cxx.h =================================================================== --- include/log4cxx/log4cxx.h (revision 2511) +++ include/log4cxx/log4cxx.h (working copy) @@ -83,8 +83,6 @@ extern template class LOG4CXX_EXPORT log4cxx::helpers::ObjectPtrT; \ typedef log4cxx::helpers::ObjectPtrT T##Ptr #define LOG4CXX_LIST_DEF(N, T) \ -extern template class LOG4CXX_EXPORT std::allocator; \ -extern template class LOG4CXX_EXPORT std::vector; \ typedef std::vector N // // pointer and list definition macros for all other cases Index: src/main/include/log4cxx/log4cxx.h =================================================================== --- src/main/include/log4cxx/log4cxx.h (revision 2511) +++ src/main/include/log4cxx/log4cxx.h (working copy) @@ -64,6 +64,8 @@ #endif +#include + // // pointer and list definition macros when building DLL using VC // @@ -72,8 +74,6 @@ template class LOG4CXX_EXPORT log4cxx::helpers::ObjectPtrT; \ typedef log4cxx::helpers::ObjectPtrT T##Ptr #define LOG4CXX_LIST_DEF(N, T) \ -template class LOG4CXX_EXPORT std::allocator; \ -template class LOG4CXX_EXPORT std::vector; \ typedef std::vector N // // pointer and list definition macros when linking with DLL using VC