Default style (Cherry Eve). Switch styles (Capricorn). XML Feed Calendar
All | General
20040831 Tuesday August 31, 2004

Dependency

I have struggled with a library dependency issue for days. It is the WebBrowser component in JDIC.

As the xpcom library has a lot of backward compatibility issue, my app has to use xpcomglue library, and it also depends on libgtkembedmoz.so, libgtkembedmoz.so depends on libxpcom.so (my app doesn't). But if I link my app without -lxpcom, ld will complain:

ld: warning: libxpcom.so, needed by ../../../../dist/bin/libgtkembedmoz.so, not found (try using -rpath or -rpath-link)

I wonder why the dependency of libxpcom.so was not solved during linking libgtkembedmoz.so? Another thing confused me is that this only happens on Linux, Solaris' ld works fine with the same source code/makefile. How does Linux ld work? Is there any tools on Linux which can find out the exact dependencies, i.e. what symbol belongs to what library?

August 31, 2004 09:21 AM PDT Permalink

Comments:

Post a Comment:

Comments are closed for this entry.

Calendar

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Links


Navigation


Referers

Today's Page Hits: 12