logo       

VC7 and log4cxxs.lib: msg#00028

Subject: VC7 and log4cxxs.lib

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)

 

 

 

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe