how to build static lib4cxx.lib

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to build static lib4cxx.lib

Owen Corpening
not certain, do I use:

ant build -dis-static=true

??

owen



Reply | Threaded
Open this post in threaded view
|

Re: how to build static lib4cxx.lib

Owen Corpening
I meant log4cxx.lib

I tried "lib /out:log4cxx.lib *.obj" in the
C:\buildtools\logging-log4cxx\build\debug\shared\log4cxx_obj directory.

It made something that was 20 MB. When I tried to link my app with it i got
lots of unresolved symbols, plus it was no longer trying to create a
AcornActuateCustomActions.dll, not it was making a lib .... but I have to be
creating a dll that is linking statically to log4cxx.lib ...:

[AcornActuateCustomActions] Linking...
[AcornActuateCustomActions]    Creating library
C:\development\head\EPS\Install\
ActuateInstall\actions\Release/AcornActuateCustomActions.lib and object
C:\devel
opment\head\EPS\Install\ActuateInstall\actions\Release/AcornActuateCustomAct
ions
.exp
[AcornActuateCustomActions] AcornActuateCustomActions.obj : error LNK2001:
unres
olved external symbol "__declspec(dllimport) public: static class
log4cxx::helpe
rs::ObjectPtrT<class log4cxx::Level> const log4cxx::Level::INFO"
(__imp_?INFO@Le
vel@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@B)
[AcornActuateCustomActions] AcornActuateCustomActions.obj : error LNK2019:
unres
olved external symbol "__declspec(dllimport) public: __thiscall
log4cxx::spi::Lo
cationInfo::LocationInfo(char const * const,char const * const,int)"
(__imp_??0L
ocationInfo@spi@log4cxx@@QAE@QBD0H@Z) referenced in function
_ValidateActuateiSe
rverSettings@4
[AcornActuateCustomActions] AcornActuateCustomActions.obj : error LNK2019:
unres
olved external symbol "__declspec(dllimport) public: void __thiscall
log4cxx::Lo
gger::forcedLog(class log4cxx::helpers::ObjectPtrT<class log4cxx::Level>
const &
,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator
<char> > const &,class log4cxx::spi::LocationInfo const &)"
(__imp_?forcedLog@Lo
gger@log4cxx@@QAEXABV?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@ABV?$basic_stri
ng@D
U?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVLocationInfo@spi@2@@Z)
reference
d in function _ValidateActuateiServerSettings@4

"Owen Corpening" <[hidden email]> wrote in message
news:d5qfsn$o48$[hidden email]...

> not certain, do I use:
>
> ant build -dis-static=true
>
> ??
>
> owen
>
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: how to build static lib4cxx.lib

carnold-3
In reply to this post by Owen Corpening
Run "ant usage" fpr help.

ant -Dlib.type=static


On May 10, 2005, at 9:25 AM, Owen Corpening wrote:

> not certain, do I use:
>
> ant build -dis-static=true
>
> ??
>
> owen
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: how to build static lib4cxx.lib

Owen Corpening
thanks - I am used to doing ant -projecthelp

"Curt Arnold" <[hidden email]> wrote in message
news:[hidden email]...

> Run "ant usage" fpr help.
>
> ant -Dlib.type=static
>
>
> On May 10, 2005, at 9:25 AM, Owen Corpening wrote:
>
> > not certain, do I use:
> >
> > ant build -dis-static=true
> >
> > ??
> >
> > owen
> >
> >
> >
> >
>
>