navic
June 10th, 2007, 06:02 PM
Just installed Ubuntu and when trying to compile a simple program that works on my other distros, this is what I get:
$ gcc factorial.c -o factorial.o
factorial.c: In function ‘main’:
factorial.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
factorial.c:6: warning: incompatible implicit declaration of built-in function ‘scanf’
factorial.c:18:2: warning: no newline at end of file
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Am I missing a package or something? Thanks!
$ gcc factorial.c -o factorial.o
factorial.c: In function ‘main’:
factorial.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
factorial.c:6: warning: incompatible implicit declaration of built-in function ‘scanf’
factorial.c:18:2: warning: no newline at end of file
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
Am I missing a package or something? Thanks!