You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Adnene Ben Abdallah <aB...@infovista.com> on 2004/07/01 11:02:33 UTC

unresolved log4cxx::Level static members symbols with MSVC 6.0

I am trying to link my application with a Debug_U version of log4cxx.dll.
But the linker is unable to resolve the log4cxx::Level static members.
I am new in using log4cxx, is there something that I missed? Can you help me
to get my code linked?
Link command and outputs are appended at the end of the mail.
Thanks,
Adnene


F:\Development\IPA\1.0\modules\test\v9template>nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE: Entering directory
`F:\Development\IPA\1.0\modules\obj\debugwin32\testv9t
emplate'
        (set
lib=F:\Development\IPA\testTools\cppunit-1.10.0\Lib;F:\Development\
IPA\1.0\modules\lib\debugwin32;F:\Development\IPA\1.0\lg\lib\debugwin32;F:\D
evel
opment\IPA\1.0\modules\lib\debugwin32;F:\Development\IPA\1.0\lg\lib\debugwin
32;F
:\Development\IPA\log4\log4cxx-0.9.7\lib;r:\core\3.1\InstallTools\rogue\lib\
;"F:
\Development\netflow\3.0\CompileTools\vs\VC98\lib";"\IDE";"F:\Program
Files\Micr
osoft SDK\.\lib") & cl -nologo -W2 -EHa -MDd -vmg -vmv -DIPAMODE_debug   -Zi
-GS
 -DIPA_DEBUG -Fr -o
F:\Development\IPA\1.0\modules\bin\debugwin32\v9template.exe
 
@F:\Development\IPA\1.0\modules\obj\debugwin32\testv9template\v9template.lst
a
dvapi32.lib user32.lib log4cxx.lib cppunitd.lib   -link
-version:%IPAVERSION% -s
ubsystem:console -largeaddressaware -tsaware -incremental:no -release
netapi
32.lib ws2_32.lib advapi32.lib user32.lib psapi.lib
Command line warning D4002 : ignoring unknown option '-GS'
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO
specifi
cation
   Creating library
F:\Development\IPA\1.0\modules\bin\debugwin32\v9template.lib
 and object F:\Development\IPA\1.0\modules\bin\debugwin32\v9template.exp
v9template.obj : error LNK2001: unresolved external symbol "public: static
class
 log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::DEBUG
" (?DEBUG@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
v9template.obj : error LNK2001: unresolved external symbol "public: static
class
 log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::INFO"
 (?INFO@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
v9template.obj : error LNK2001: unresolved external symbol "public: static
class
 log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const
log4cxx::Level::ERROR
" (?ERROR@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
F:\Development\IPA\1.0\modules\bin\debugwin32\v9template.exe : fatal error
LNK11
20: 3 unresolved externals
NMAKE : fatal error U1077: '(set' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '(set' : return code '0x2'
Stop.