Linux下的编译问题,急求!可以的话,给出问题的原因和解决方法!
[root@localhost动态库]#gcc-rdynamic-ldl-omyprocmain.c/usr/lib/gcc/i686-redhat-linux/4.4....
[root@localhost 动态库]# gcc -rdynamic -ldl -o myproc main.c
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld 返回 1 展开
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld 返回 1 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询