LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to create and include dynamic labraries (https://www.linuxquestions.org/questions/programming-9/how-to-create-and-include-dynamic-labraries-591031/)

dont_stop_me 10-11-2007 06:44 AM

how to create and include dynamic labraries
 
Hi I'm new to linux programming, I'm interested if I can create windows dll like libraries and to use them in different programs. If yes, how?

matthewg42 10-11-2007 08:05 AM

Yes. Compile with gcc using the -fPIC option. Link using -shared and -soname options, and make sure the resulting library file is put somewhere in the ld.so dynamic link search path.

Manual pages you should read:
  • ld.so
  • gcc

tuxdev 10-11-2007 01:28 PM

Look at the Program Library HOWTO


All times are GMT -5. The time now is 01:02 PM.