LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   distributing shared object files to client linux (https://www.linuxquestions.org/questions/programming-9/distributing-shared-object-files-to-client-linux-618988/)

emprise 02-06-2008 12:04 AM

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.:confused:

thanks in advance for your kind time.

best regards
s.an

JudyL 02-06-2008 07:52 AM

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


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