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)
[EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@log4cxx@@@[EMAIL PROTECTED]@B
LINK : fatal error LNK1120: 1 unresolved externals

owen

"Javier Leyba" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> 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)"
>
([EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@log4cxx@@@helpe
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL 
PROTECTED]@2@@std@@[EMAIL PROTECTED])
> MyPrueba.obj : error LNK2001: unresolved external
> symbol "__declspec(dllimport) public: static class
> log4cxx::helpers::ObjectPtrT<class log4cxx::Level>
> const  log4cxx::Level::INFO"
> ([EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@log4cxx@@@helpers@
> [EMAIL PROTECTED])
> MyPrueba.obj : error LNK2001: unresolved external
> symbol "__declspec(dllimport) public: bool __thiscall
> log4cxx::Logger::isInfoEnabled(void)const "
> ([EMAIL PROTECTED]@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 &)" (_
>
[EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@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 &)"
>
([EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@log4cxx@@@helper
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL 
PROTECTED]@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
>



Reply via email to