FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 11-13-2008, 03:29 AM
"Kartik CDS"
 
Default Query regarding resolving inter-library dependencies

I have a executible. myexec.exe

I am writing a library mylib.so which depends on libperl.so. [libperl.so
inturn depends on several libraries IO.so, Fcntl.so, Socket.so etc etc]

myexec.exe will dynamically load the mylib.so.
But when running it fails asking for the libraries on which libperl.so was
dependent.

If i include the libperl.so in the link path of myexec.exe things go fine.
But i dont want to alter the link path.

I tried compiling mylib.so using :
libtool --mode=link --tag=CC g++-3.4 -rdynamic -shared -o mylib.so
PageValidator.o -L/lib -lperl

if i go on adding the dependent libraries to the libtool command then the
executable runs successfully.

Am i missing any options to recursively search and load the interdependent
libraries ?
Please clarify.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 10:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org