From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,374409521cdaeffc,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-26 12:53:28 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!uunet!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!ctc.com!news.pop.psu.edu!news.cac.psu.edu!newsserver.jvnc.net!igor.rutgers.edu!remus.rutgers.edu!not-for-mail From: mathew@remus.rutgers.edu (Sajee) Newsgroups: comp.unix.osf.osf1 Subject: specifying paths to shared objects Date: 26 Jul 1994 14:54:20 -0400 Organization: Rutgers University LCSR Sender: netnews@remus.rutgers.edu Message-ID: <313m4s$aot@remus.rutgers.edu> NNTP-Posting-Host: remus.rutgers.edu Keywords: shared lib Hello, I want to know how I can tell ld the path to a shared object when it is creating an executable. I dont want to use LD_LIBRARY_PATH. I need a method whereby I can specify the paths to certain shared objects at link time. These shared objs will not found in the default directories. I've tried -rpath but it doesn't seem to work. From what the man page says it seems like you are to specify directory(s) as arguments to rpath but when i do that i get this error: Object file format error in:/home/scm/lib: bad file magic number If I specify the full path to the shared object in -rpath I get no errors but the loader cannot find the shared object. Please send all responses to scm@chesapeake.com thanks, Sajee