LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2005, 04:08 PM   #1
BBB
Member
 
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

Rep: Reputation: 15
Dynamic Libs (path problem)


Hi.
Im learning dl_libs under Linux and i have been succsesfull in creating and loading them.
However, the program expects them to be in /lib, and I don't want manually copy them
everytime i recompile them! Ive tried:
#Creating a link (ln) in /lib to the lib and then it complains about "invalid cross-device link".
#Loading them from where they are ( sprintf(lib_path, "../root/dev/dl_lib2/lib%d.so", lib_num); ),
and then it sez it can't find them!

Any suggestions?
 
Old 03-18-2005, 04:58 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Place them in a directory in LD_LIBRARY_PATH, or add the directory they're in to the variable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very wierd problem, two libs depend on each other Ephracis Linux - Software 5 11-07-2004 10:58 PM
not able to pass dynamic path to fopen command in C gauravsahni Programming 3 11-03-2004 01:28 PM
help - what env var for dynamic lib path? emanresu Linux - Newbie 3 05-31-2004 03:32 PM
Problem with dependencies of libs from OpenSSL mavinac Linux - Software 4 03-24-2004 10:04 AM
Creating Dynamic libs veeru Linux - Software 0 11-22-2002 11:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration