Micha Feigin <[EMAIL PROTECTED]> writes: | How do i compile both static and non static librarys under C (.a and .so) | and how do i install them on the system so they can be found by the linker | or programs.
You just put them in a directory somewhere. Generally /usr/local/lib is a good location if you're installing them yourself. Usually it's best to let the developers specify the path explicitly for non-standard libraries. They can do this with, on most compilers, "-L/usr/local/lib -lfoo". You could install them in a standard system directory, like "/usr/lib", which is searched automatically, but you're just asking for trouble doing that with non-standard software. Controlling whether they link to the static or nonstatic library is also accomplished via an option to the compiler. On the GNU compilers that option is "-static". See the info for gcc for further options. Gary