LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Creating Shared objects (https://www.linuxquestions.org/questions/programming-9/creating-shared-objects-229248/)

Anup Kumar 09-11-2004 05:46 AM

Creating Shared objects
 
I want to make my function .so file. This file will not contain the main ().
I will have different entry points for the other functions using this function.

Im working on opengl.
Please help me out.

foo_bar_foo 09-11-2004 11:45 PM

you make object files with -fPIC

gcc -c -fPIC mything.c

gcc -shared -fPIC -o mything.so mything.o


All times are GMT -5. The time now is 02:11 AM.