Linking a C program directly with ld fails with undefined reference to `__libc_csu_fini`

后端 未结 8 1478
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 08:54

I\'m trying to compile a C program under Linux. However, out of curiosity, I\'m trying to execute some steps by hand: I use:

  • the gcc frontend to produce assemb
8条回答
  •  离开以前
    2020-11-30 09:29

    If you're running a 64-bit OS, your glibc(-devel) may be broken. By looking at this and this you can find these 3 possible solutions:

    1. add lib64 to LD_LIBRARY_PATH
    2. use lc_noshared
    3. reinstall glibc-devel

提交回复
热议问题