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 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.
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 04:45 PM.|