[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Q: How do I make an executable independent of libraries?
From: |
Peter Sherwood |
Subject: |
Q: How do I make an executable independent of libraries? |
Date: |
Wed, 23 May 2001 13:00:00 -0400 |
Using Red Hat Linux 7 and gcc to compile/link C sources, I created an
executable for my program BPlot. This executable worked fine on my system,
but when I sent a copy of the executable to someone to try on a Red Hat
Linux 6.2 system, when he started the program with
./BPlot B.dat
./BPlot: /lib/libc.so.6: version `GLIBC_2.2' not found (required by ./BPlot)
This seems to indicate there is some component of glibc necessary for the
executable to run. How can I create an executable which is independent of
the system (i e, is portable), including all the library components it
needs within the executable itself.
I cannot find any discussion of this in either the gcc or glibc manuals.
- Q: How do I make an executable independent of libraries?,
Peter Sherwood <=