Prof Abimbola Olowofoyeku wrote:
Does GPC link against glibc? I built GPC on a Redhat 7.1 machine and compiled a program there. The program won't run on a Redhat 6.2 machine. It dies with a message "/lib/libc.so.6: version 'GLIBC_2.2' not found ...".
I thought that GPC only links 'libgcc.a'. What gives?
GPC, like almost all programs, links against libc (which provides the interface to the system functions, while libgcc only provides only a few special support routines needed on a platform, such as (I think) 64 bit arithmetic on 32 bit machines).
And how can I force GPC to link only to static libraries?
-static When building GPC, pass it in CFLAGS to make, when compiling programs with GPC, just give it on the command line. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html