logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen Corpening" <ocorpen...@acornsys.com>
Subject Re: Linking problem
Date Wed, 04 May 2005 18:48:24 GMT
I am using the HEAD (unless I really screwed up ...) and get 1 unresolved
token, I have /D "LOG4CXX_STATIC" but don't know how to use the dll instead
of the .lib (sorry, forgive me please) here is my compile line and link line
and the error:
C:\development\head\EPS\Install\ActuateInstall\Wix\ActuateInstall>cl /clr
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D
"ActuateInstall_EXPORTS" /D "_WINDLL" /D "_MBCS" /EHsc /MTd /Yc"stdafx.h"
/Fo"build/" /Fd"build/vc70.pdb" /W3 /c /Wp64 /TP /Gz actions\stdafx.cpp
/nologo
stdafx.cpp

C:\development\head\EPS\Install\ActuateInstall\Wix\ActuateInstall>cl /clr /D
"LOG4CXX_STATIC" /EHsc /IC:\buildtools\logging-log4cxx\include  /Od /D
"WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "ActuateInstall_EXPORTS"
/D "_WINDLL" /D "_MBCS" /EHsc /MTd /Yu"stdafx.h" /Fo"build/"
/Fd"build/vc70.pdb" /W3 /c /Wp64 /TP /Gz
actions\AcornActuateCustomActions.cpp /nologo
AcornActuateCustomActions.cpp

C:\development\head\EPS\Install\ActuateInstall\Wix\ActuateInstall>link
/NOENTRY /NODEFAULTLIB:nochkclr.obj
/OUT:"binary/AcornActuateCustomActions.dll" /INCREMEN
TAL /NOLOGO /LIBPATH:C:\buildtools\logging-log4cxx\build\debug\shared
log4cxxd.lib /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003
\Vc7 \\lib" /DLL /DEBUG /PDB:"build/AcornActuateCustomActions.pdb"
/SUBSYSTEM:WINDOWS /IMPLIB:"build/AcornActuateCustomActions.lib"
/MACHINE:X86 Msi.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib .\build\AcornActuateCustomActions.obj
.\build\stdafx.obj
   Creating library build/AcornActuateCustomActions.lib and object
build/AcornActuateCustomActions.exp
LINK : error LNK2020: unresolved token (0A00000A)
?INFO@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B
LINK : fatal error LNK1120: 1 unresolved externals

owen

"Javier Leyba" <xavierleyba@yahoo.com.ar> wrote in message
news:20050504104114.83397.qmail@web31601.mail.mud.yahoo.com...
>
> Hi
>
> I´m a little bit new with C++ and totally new with
> log4cxx.
>
> I'm using VC++ 6. I compiled a log4cxx static library
> and the I tried to compile one of the examples that I
> saw in doc page.
>
> But at link time I got the message:
>
>
> MyPrueba.obj : error LNK2001: 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@@@helpe
rs@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBDH@Z)
> MyPrueba.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)
> MyPrueba.obj : error LNK2001: unresolved external
> symbol "__declspec(dllimport) public: bool __thiscall
> log4cxx::Logger::isInfoEnabled(void)const "
> (__imp_?isInfoEnabled@Logger@log4cxx@@QBE_NXZ)
> MyPrueba.obj : error LNK2001: 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)
> MyPrueba.obj : error LNK2001: 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>,c
> lass std::allocator<char> > const &)"
>
(__imp_?getLogger@Logger@log4cxx@@SA?AV?$ObjectPtrT@VLogger@log4cxx@@@helper
s@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
> Debug/prueba.exe : fatal error LNK1120: 5 unresolved
> externals
> Error executing link.exe.
>
> Could somebody tell me what I did wrong ?
>
> Thanks in advance
>
> J
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ˇgratis!
> ˇAbrí tu cuenta ya! - http://correo.yahoo.com.ar
>




Mime
View raw message