Article View: comp.unix.programmer
Article #3349Re: ld.so, how do I include my own libraries?
From: Sony Antony
Date: Wed, 02 Oct 2002 20:06
Date: Wed, 02 Oct 2002 20:06
13 lines
1577 bytes
1577 bytes
> > LD_LIBRARY_PATH=/net/hu2/lonely/cs4455/SDL_gfx-2.0.3/local/lib > > > > which is the full directory where the shared library files libSDL_gfx.* > > files are stored, but it still gives me the same error when I try to run > > my program. What do I do? > You can set the LD_LIBRARY_PATH to include the path where the libraries > are nefore running your program. Or you can hardcode the searchpath in the > binary. e.g. give gcc -Wl,-R /another/path at the linking stage. And if both -R switch and LD_LIBRARY_PATH are used, LD_LIBRARY_PATH will take precedence. --sony
Technical Details
Message-ID:
<3eb007f1.0210021206.606a3a0e@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<andmmd$s5v$1@news-int.gatech.edu> <slrnapl3ue.h1b.noselasd@utelsystems.dyndns.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,7093db2131cc7021 X-Google-Attributes: gidfc89c,public X-Google-Thread: 115a30,7093db2131cc7021 X-Google-Attributes: gid115a30,public X-Google-ArrivalTime: 2002-10-02 13:06:11 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: sonyantony@hotmail.com (Sony Antony) Newsgroups: comp.unix.programmer,git.unix.linux Subject: Re: ld.so, how do I include my own libraries? Date: 2 Oct 2002 13:06:11 -0700 Organization: http://groups.google.com/ Lines: 13 Message-ID: <3eb007f1.0210021206.606a3a0e@posting.google.com> References: <andmmd$s5v$1@news-int.gatech.edu> <slrnapl3ue.h1b.noselasd@utelsystems.dyndns.org> NNTP-Posting-Host: 139.76.65.132 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1033589171 23740 127.0.0.1 (2 Oct 2002 20:06:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Oct 2002 20:06:11 GMT