yet another gcc prob

andrew sprott andru at
Mon Jul 31 14:51:41 PDT 2000

> Create $LFS/test.c file containing
> // begin test.c
> #include <stdio.h>
> int main() {
> printf("hi\n");
> return 0 }

you forgot the semicolon

> // end test.c
> enter chroot, compile and execute with:
> chroot $LFS bash --login
> gcc -o /test /test.c
> /test

> Does it print 'hi' or complains about no such file or directory?

no such file or directory


Mail archive:
IRC access: server: port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)

More information about the lfs-dev mailing list