This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem distributing shared libraries for differentdistributions for Linux


Jaap Haitsma <jaap_haitsma at yahoo dot com> writes:

[snip]

> The shared library we write in C++
> The shared library it self is has a couple of threads
> and does some socket communcation
>
> We are having problems getting this to work under
> different Linux distributions and even different
> versions of the same distribution. We're compiling
> everything under Redhat Linux 7.1 with gcc 2.95.3
> If we then for example  write and compile an
> application on Redhat 7.1 or 7.3 (On Redhat 7.3 gcc
> 2.96 is installed, I know it's not an official gcc
> version) and link with the shared library we created 
> everything works. But if we compile the same code on
> redhat 8.0 with gcc 3.2 the program even fails to
> link.
> The linker is complaining about undefined references
> to   a number of static functions inside a C++ class 
> we use.

The C++ ABI changed with gcc 3.x. This means you can not mix C++ code
compiled with gcc 3.x with older C++ binaries.

[snip]

-- 
Oscar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]