You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Brice Ruth <br...@webprojkt.com> on 2003/03/03 21:39:26 UTC

create static library?

Good afternoon, list members.

I am working on a project that I hope to use xercesc in (and am well on 
my way to doing so). I just determined that the portion of the project 
I'm working in is actually built into a static library (.a) - which is 
then used by the main application. To my (somewhat limited) knowledge, I 
cannot create a static library that links to a dynamic library 
(xercesc), can I? Is it possible to build xerces as a static lib?

Any help, pointers, tips are - as always - much appreciated!

Respectfully,
Brice Ruth


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: create static library?

Posted by jiang lei <ji...@8107.co.jp>.
Hi Brice,

Static libraries are just pieces of codes and can not be linked with with
xercesc alone. You can build your library first, and then link it to your
main program, together with xercesc library. As a matter of fact, if you
don't build your main program with xerces, your library functions will cause
link errors like "unresolved symbol".

Regards
Lei

----- Original Message -----
From: "Brice Ruth" <br...@webprojkt.com>
To: <xe...@xml.apache.org>
Sent: Tuesday, March 04, 2003 5:39 AM
Subject: create static library?


> Good afternoon, list members.
>
> I am working on a project that I hope to use xercesc in (and am well on
> my way to doing so). I just determined that the portion of the project
> I'm working in is actually built into a static library (.a) - which is
> then used by the main application. To my (somewhat limited) knowledge, I
> cannot create a static library that links to a dynamic library
> (xercesc), can I? Is it possible to build xerces as a static lib?
>
> Any help, pointers, tips are - as always - much appreciated!
>
> Respectfully,
> Brice Ruth
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: create static library?

Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
	create something like:

cd $XERCESCROOT/lib
ar -cq xerces.a ../obj/LINUX/*.o


Gareth


On Mon, 3 Mar 2003, Brice Ruth wrote:

> Good afternoon, list members.
> 
> I am working on a project that I hope to use xercesc in (and am well on 
> my way to doing so). I just determined that the portion of the project 
> I'm working in is actually built into a static library (.a) - which is 
> then used by the main application. To my (somewhat limited) knowledge, I 
> cannot create a static library that links to a dynamic library 
> (xercesc), can I? Is it possible to build xerces as a static lib?
> 
> Any help, pointers, tips are - as always - much appreciated!
> 
> Respectfully,
> Brice Ruth
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org