Final link failed - problem with hidden symbo

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 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. */
GROUP ( /lib/ /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ ) )

so i changed it to "GROUP ( libc_nonshared.a )" (well, not the OUTPUT_FORMAT part) as suggested here:
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!

elmindreda wrote on Wednesday, May 30, 2007:

Are you using the static or shared version of the GLFW library?