Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-06-2008, 12:04 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 1

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

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 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
Old 02-06-2008, 07:52 AM   #2
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


distributing, files, library, shared

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: 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: 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: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM > Forums > Non-*NIX Forums > Programming

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

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