nobody wrote on Monday, May 28, 2007:
Hi, I tried to compile a program using GLFW and it compiles just fine, but linking fails with the error
/usr/bin/ld: bin/Debug/GBM2GLFW: hidden symbol `atexit’ in /usr/lib/libc_nonshared.a(atexit.oS) is referenced by DSO
Does anyone know how to fix this? Or is it not a GLFW problem at all?
Trough searching on google I found out that it seems to be related to having a broken libc.so file
Mine looked like this:
-------------------------------------------------------------------------------------------
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux-x86-64.so.2 ) )
-------------------------------------------------------------------------------------------
so i changed it to "GROUP ( libc.so.6 libc_nonshared.a )" (well, not the OUTPUT_FORMAT part) as suggested here: http://www.gnu.org/software/libc/FAQ.html#s-2.7
but it didnt help at all.
I’m using version 2.6.beta1 of GLFW and my libc is version 2.5
Help is greatly appreciated!