Hi, I am just getting my feet wet with C. I have a few object files that I want to convert into a shared library (.so file). Is that as easy as using the right gcc switch, or is it more involved? If the latter, where can I learn how to do it? Thanks, Eugene.
On Wed, 11 Jun 2003 10:35:19 -0500
"Serdiouk, Eugene"
I am just getting my feet wet with C. I have a few object files that I want to convert into a shared library (.so file). Is that as easy as using the right gcc switch, or is it more involved? If the latter, where can I learn how to do it? I have not done that with GCC, but I have done it with individual object files as well as libraries on other Unixes. The linker command option is -shared. ld -shared -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
I believe that the following may help you: http://www.icon.co.za/~psheer/book/node26.html.gz On Wed, 11 Jun 2003, Serdiouk, Eugene wrote:
Hi,
I am just getting my feet wet with C. I have a few object files that I want to convert into a shared library (.so file). Is that as easy as using the right gcc switch, or is it more involved? If the latter, where can I learn how to do it?
Thanks,
Eugene.
For future mails, please use a fixed line length of no more than approx.
75 chars. This makes things easier for all.
"Serdiouk, Eugene"
I am just getting my feet wet with C. I have a few object files that I want to convert into a shared library (.so file). Is that as easy as using the right gcc switch, or is it more involved? If the latter, where can I learn how to do it?
Creating a shared library on an ELF system like linux is really easy: - Compile all objects with -fPIC added to the compiler cmdline. - Create a shared library: gcc -shared -Wl,-soname,<soname for library> -o lib<name> <library objects> Replacing in the <> tags with the wanted values. Philipp -- Philipp Thomas work: pthomas@suse.de SuSE Linux AG private: philipp.thomas@t-link.de
I'm looking for suggestions on how to use doxygen with automake. Specifically I want to get automake to: 1. Check for existence of doxygen. 2. Create targets in Makefile so that the following or similar work: # make doc Creates documentation in doc/html # make doc-latex Ditto for LaTeX output # make clean Cleans documentation. The last one may be no more than clean-local: <tab>/bin/rm -rf * in doc/Makefile.am Probably I shouldn't even be using /bin/rm here. -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
participants (5)
-
Filippos Papadopoulos
-
Jerry Feldman
-
John Lamb
-
Philipp Thomas
-
Serdiouk, Eugene