11

I know a .so file is a shared library file similar to a .dll file in windows, but what about a .lo file?

1

1 Answer 1

19
.o  object         (contains compiled code)
.lo library object (contains information for building a .so with `libtool`)
.so shared object  (indeed compareable to a DLL)
.ko kernel object  (usually kernel modules)

See http://www.delorie.com/gnu/docs/libtool/libtool_8.html

3
  • 2
    It stated a little obscure. *.lo (and *.la) are text files that contains some definitions for libtool. If you don't use libtool - you don't need that. It just some hints bundled with corresponding *.o. *.la serves same purpose for *.so, which is a shared library.
    – keltar
    Aug 29, 2013 at 10:42
  • @Cobra_fast, thanks for your answer. what do you mean by built into a .so.
    – rock_buddy
    Aug 29, 2013 at 10:45
  • 2
    He meant libtool could use this files to assemble *.so (and *.la too). libtool is a script designed to help shared libraries, but it's quite possible it just lost it's relevance nowadays - for my years in programming for linux, i've never seen necessity to use it.
    – keltar
    Aug 29, 2013 at 11:31

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.