LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2010, 01:17 AM   #1
trivedi_ravi13
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Need help Regarding shared object creation & installation


Hello,

I need help in linux shared object installation. i have created a .so libraray for my code,copied it to /usr/lib/ directory & created the symbolic link for it bt when i try to compile my code with option -l it gives errors like header files are missing...class has not been declared. actually these all are includede in .so file. I am compiling my code for cross platform PowerPC & using simulater to run that. I have also included this .so in to the file system of powerpc simulater but still same problem...


real name : libamqpproxy.so.1.0.0
link: libamqpproxy.so.1->libamqpproxy.so.1.0.0
 
Old 04-28-2010, 02:52 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i take it you did not pass the location of the lib to gcc
and/ or
did not run "ldconfig"
 
Old 04-28-2010, 04:33 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'libamqpproxy.so.1' ( so name ) is the run time library.

'gcc' will look for libamqpproxy.so

Please do : # ln -s libamqpproxy.so.1.0.0 libamqpproxy.so
..
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libgda-4.0.so.4: cannot open shared object file mahesh1234 Linux - Newbie 2 10-22-2013 11:06 PM
gxine: error while loading shared libraries: libmozjs.so: cannot open shared object.. khronosschoty Slackware 10 11-10-2008 07:33 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
shared object & manually installed daemon mac-geek Linux - Software 1 07-23-2007 09:45 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:07 PM.

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