Portable Shared Objects?

Can I use shared object files in a portable way, such as a DLL on Windows?

I am wondering if there is a way to provide a ready-to-use compiled library for Linux. In the same way, you can compile a DLL in Windows and it can be used on any other Windows (normally, not any other, but on most of them it can).

Is this possible on Linux?

EDIT:
I just woke up and read the answers. There are very good ones. I am not trying to hide the source code. I just want to provide a library that is already compiled and ready to use, so users who do not have compilation experience do not need to do this themselves.
Therefore, the idea is to provide a .so file that runs on as many different Linux systems as possible. The library is written in C ++ using the STL and Boost libraries.

+5
source share
7 answers

I highly highly recommend the use of a means of checking the application / LSB libraries. Tell him soon if you:

  • ,
  • bash -
  • ,
  • ( , )
  • , .

, . .. , perl script localhost.. .

, / LSB ( ) .

- libtool ( ), , ​​, , DSO ( , , , ) .

, Doxygen . , , , .

, , checker , , , .

, " ", . , , . , src/lib , . , , , , TAP ( ) - . , (), , en situ ( DSO ).

+10

, , , , + , . (, , .) Linux (32- (x86) 64- (amd64)). , Skype Linux.

. Linux , Linux, , , (, 2 ). , .so, .. , .so Linux. , : , , , , , , .. .

, , .so, . ( , Linux-, .) 32- 64- , x86, PowerPC, ARM ..? .so Debian, Ubuntu Red Hat ( ), , , SUSE Gentoo ( ..).

+4

GNU autoconf, automake libtool, configure , configure Makefile.in.

- .

./configure; make; make install Linux.

, Linux . , x86, Windows ( : Itanium (XP ) Alpha (NT 4.0) ).

+4

, , Linux? Pogram Howto.

+2

, . Windows MSFT DLL, DLL Windows, "".

, Linux ( "", ), , Windows, , , , CPU,...

, (CPU), . . , , , - C . Linux- , .

, ( , ). , Linux- , - , Ubuntu, Debian RH.

+2

.so /usr/lib , , , , .

linux. , Linux.

http://www.linuxfoundation.org/collaborate/workgroups/lsb

?

0

Tinkertim - . , gcc ABI. , , gcc 4.3.2 . , ABI ( ++ ), , , , , -distro , , , , . ( ), ABI, gcc, .

0
source

All Articles