LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-06-2008, 12:04 AM   #1
emprise
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Question distributing shared object files to client linux


hi
actually i am new to linux gcc programming.
i have created a c file which contains code to send input to a serial communication device. i converted it into a shared object file so that my client will be able to use the library in his program, the test program which i used in the development system with the library file installed in the /usr/local/lib works well. so i decided to send the xxx.so.0.0 file to the client and asked him to put in the same /usr/local/lib folder and give an ldconfig -n. to update the library files. he did that exactly and created a test program to use the library file in the desktop, but while compiling an undefined function `function name` error returns in main. i actually dont want to distribute the source. so my question is how to distribute the library file to a client system with out asking him to compile my source.

thanks in advance for your kind time.

best regards
s.an
 
Old 02-06-2008, 07:52 AM   #2
JudyL
LQ Newbie
 
Registered: Aug 2007
Location: Florida, USA
Distribution: Ubuntu
Posts: 29

Rep: Reputation: 15
You need to provide to your users an include file (.h) that contains the function prototypes for the exposed functions in your .so
 
  


Reply

Tags
distributing, files, library, shared



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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
how to create shared libraries and configure shared object location vijaya_svk Programming 2 11-19-2007 12:30 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
Creating/Distributing Linux Binary Files Sava Programming 3 08-29-2006 09:31 AM
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 > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:30 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