yet another gcc prob

andrew sprott andru at btinternet.com
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

andrew


--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org 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