You are not logged in.
Pages: 1
I installed gcc 4.5.1 but get error when I try to compile this test program:
#include <stdio.h>
int main()
{
printf("GCC Works");
}
The errors I get:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
Is that caused by broken packages? Please help me.
EDIT: I think it is caused by glibc, that I installed manually from the Packages section.
Last edited by CheatCat (2010-09-18 19:14:31)
Offline
If you install the Arch packages via pacman there won't be a problem, so it must be the manually installed glibc.
Last edited by loafer (2010-09-18 19:12:50)
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Yeah, sorry for that, updating and reinstalling glibc fixed it.
Offline
Online
Pages: 1