Hi All
I have simple question related VC++ 7 and log4cxxs.lib.
If I tried to link “libcxxs.lib” with my VC7
project, the compilation fails.
Any Ideas?
c:\Program Files\Microsoft
Visual Studio .NET\Vc7\include\useoldio.h(29) : warning C4995:
'_OLD_IOSTREAMS_ARE_DEPRECATED': name was marked as #pragma deprecated
e:\software\log4cxx_0.9.7\log4cxx-0.9.7\include\log4cxx\helpers\tchar.h(263)
: warning C4244: 'argument' : conversion from '__w64 int' to 'std::streamoff',
possible loss of data
e:\software\log4cxx_0.9.7\log4cxx-0.9.7\include\log4cxx\helpers\tchar.h(264)
: warning C4244: 'argument' : conversion from '__w64 int' to 'int', possible
loss of data
e:\software\log4cxx_0.9.7\log4cxx-0.9.7\include\log4cxx\helpers\tchar.h(269)
: warning C4244: 'argument' : conversion from '__w64 int' to 'std::streamoff',
possible loss of data
f:\projects\TestVC++\Test\ASRLogger.h(25)
: warning C4091: 'static ' : ignored on left of 'ASRLogger' when no variable is
declared
Generating Code...
Linking...
LINK : warning LNK4075:
ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
LINK : warning LNK4075:
ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification
ASRLogger.obj : error
LNK2001: unresolved external symbol "__declspec(dllimport) public: static
class log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::OFF"
(__imp_?OFF@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
ASRLogger.obj : error
LNK2019: unresolved external symbol "__declspec(dllimport) public: static
void __cdecl log4cxx::BasicConfigurator::configure(void)"
(__imp_?configure@BasicConfigurator@log4cxx@@SAXXZ) referenced in function
"public: static void __cdecl ASRLogger::init(void)"
(?init@ASRLogger@@SAXXZ)
ASRLogger.obj : error
LNK2019: unresolved external symbol "__declspec(dllimport) public: static
void __cdecl log4cxx::PropertyConfigurator::configure(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)" (__imp_?configure@PropertyConfigurator@log4cxx@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
referenced in function "public: static void __cdecl
ASRLogger::init(void)" (?init@ASRLogger@@SAXXZ)
ASRLogger.obj : error
LNK2019: unresolved external symbol "__declspec(dllimport) public: static
class log4cxx::helpers::ObjectPtrT<class log4cxx::Logger> __cdecl
log4cxx::Logger::getLogger(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&)" (__imp_?getLogger@Logger@log4cxx@@SA?AV?$ObjectPtrT@VLogger@log4cxx@@@helpers@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
referenced in function "public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Logger> __cdecl
ASRLogger::getLogger(void)" (?getLogger@ASRLogger@@SA?AV?$ObjectPtrT@VLogger@log4cxx@@@helpers@log4cxx@@XZ)
testlog.obj : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::FATAL" (__imp_?FATAL@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
testlog.obj : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: bool __thiscall
log4cxx::Logger::isFatalEnabled(void)const "
(__imp_?isFatalEnabled@Logger@log4cxx@@QBE_NXZ) referenced in function _main
testlog.obj : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::ERROR"
(__imp_?ERROR@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
testlog.obj : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: bool __thiscall
log4cxx::Logger::isErrorEnabled(void)const "
(__imp_?isErrorEnabled@Logger@log4cxx@@QBE_NXZ) referenced in function _main
testlog.obj : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::INFO"
(__imp_?INFO@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
testlog.obj : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: bool __thiscall
log4cxx::Logger::isInfoEnabled(void)const "
(__imp_?isInfoEnabled@Logger@log4cxx@@QBE_NXZ) referenced in function _main
testlog.obj : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: void __thiscall
log4cxx::Logger::forcedLog(class log4cxx::helpers::ObjectPtrT<class
log4cxx::Level> const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&,char const *,int)"
(__imp_?forcedLog@Logger@log4cxx@@QAEXABV?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBDH@Z)
referenced in function _main
testlog.obj : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::DEBUG"
(__imp_?DEBUG@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
testlog.obj : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: bool __thiscall
log4cxx::Logger::isDebugEnabled(void)const "
(__imp_?isDebugEnabled@Logger@log4cxx@@QBE_NXZ) referenced in function _main
Debug/Test.exe : fatal error
LNK1120: 13 unresolved externals
Build log was saved at
"file://f:\projects\TestVC++\Test\Debug\BuildLog.htm"
Test - 14 error(s), 12
warning(s)