Am debugging something and am not quite clear about details.


My executable A loads library B dynamically, and B depends on library C.

C is located in /usr/local/lib/ .

When I run A with "LD_PRELOAD=/usr/local/lib/C.so", A works.

When I run A with "LD_LIBRARY_PATH=/usr/local/lib/", A does not work (loading/initializing B fails somehow).

And when I just run A, A does not work (same reason).


Any thought about what I missed?

Also, just for clarity, is /usr/local/lib/ in the default search path for library files?


Thanks!
Tinker

Reply via email to