Jorge,
    I didn't see a follow-up on this one and since the question pops
up once in a while, I though it might be worth re-iterate what others
have said on the matter...

> As I've see, it Xeces cannot be linked in static mode at
compile-time.
> Is there any way of doing it?.

The configure-framework does not support this directly, but you can
create your own archive containing the object files that normally go
inte a shared archive.

Quoting Dee Jay Randall <[EMAIL PROTECTED]> from Tuesday,
September 18, 2001:
DJR> What I have done in the past was to take all the .o
DJR> files and stuff them in a libxerces-c1_4_0.a library.
DJR> cd $XERCES_ROOT/obj/SOLARIS
DJR> ar r libxerces-c1_4_0.a *.o

> If not, how can I link statically the rest of my program, (the rest
of
> the libraries can be linked with the -static flag of GNU GCC), and
let only
> Xerces as required external library?

This should not be a problem either, just use something like:
gcc -o <my_appn> <my_main>.c <static_lib1>.a
<static_lib2>.a -L$XERCESCROOT/lib -lxerces-cX_Y

Good luck,
    Martin

--
Martin Kalen
Software Engineer
TODAY Systems, Inc.
http://www.todaysystems.com.au/
Tel +61-3-9536 3900 - Fax +61-3-9536 3901


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to