Re: [gdome]Static linking of libraries



Hi,

On Thu, 2004-02-05 at 17:38, Sunil Kumar wrote:
> Hi,
> 
> I downloaded the source compiled and testing the
> samples. However I want to write my own program and
> link it statically to the library. 
> 
> Just statically linking to libgdome.a is giving
> copmpile errors e.g. - lots of undefined references
> like "xmlHashFree" etc.

you need to link libxml2 and glib as well, as they are used from inside
gdome2. Try

pkg-config gdome2 --libs

to get the list of libraries gdome2 depends on, and link them
(statically or dynamically) along with gdome2.

--Luca





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]