gcc 2.95.3 (pristine) + glibc 2.2.2 = unresolved symbol atexit

Rodrigo Barbosa (aka morcego) rodrigob@conectiva.com.br
Mon Apr 2 10:46:00 GMT 2001


This is the situation. With glibc 2.2.2 and gcc 2.95.3 (compiled agains
glibc 2.2.2), this is what I get on some situations:

$ gcc -o t t.c -Wall -lstdc++
/lib/libm.so.6: undefined reference to `atexit'
collect2: ld returned 1 exit status

The symbol atexit on libm.so.6 (underfined) comes from crtendS.o (which has a
dummy call for it, to solve linkage problems, as stated on comments).

Anyone got a clue on how can I solve this ?

Once this comes from crtendS.o, I guess this is more a gcc problem then a glibc
one.

TIA

-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6yLtNn5NdOMMM/nERAt3MAKCE0fnb59eAdu+NynhtcPYHzi3XyQCgu5YF
ha3Dm28OARJ9e10FCt06F3A=
=97h2
-----END PGP SIGNATURE-----


More information about the Gcc-bugs mailing list