logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sallge <david.sal...@noffz.com>
Subject FileAppender Linking Problem
Date Wed, 14 Sep 2005 10:29:53 GMT
Hello everyone!

I have a problem linking my testproject.
The library is linked correctly, the includes are included.
All other things (BasicConfigurator, Layout) work while linking.

Only this line seems to bring up the problem:
FileAppender *appender = new FileAppender(layout, _T("test.txt"));

The Linker error sais:
testprojekt error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall 
(class log4cxx::helpers::ObjectPtrT<class log4cxx::Layout> const &,
class std::basic_string<char,struct std::char_traits<char>,
class std::allocator<char> > const &,bool)" 

One thing I can't understand:
If I'm using the empty cunstructor
FileAppender *appender = new FileAppender();
Everything links fine, but there's no file to append to (obviously).

Any Ideas?

Thanx in advance,

Name:         David Sallge
Company:      Noffz ComputerTechnik GmbH
Address:      Tempelsweg 24A
              D-47918 Toenisvorst

Phone:        +49-2151-99878-40
Fax:          +49-2151-99878-88
e-mail:       david.sallge@noffz.com
Internet:     www.noffz.com

View raw message