PDA

View Full Version : g77



gusanto
January 27th, 2007, 11:12 PM
I have the following errors when compiling my test fortran code below after I compiled it with command 'g77 test.f -o test' (without quote):

/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

program test

write(*,*)'good day mate'

stop
end



Any idea what is missing?

Andy_D
January 28th, 2007, 12:42 AM
I think this error is resolved by making sure the package 'libc6-dev' is installed on your system. Have you installed the package 'build-essential'? If you have just installed 'g77' and not 'build-essential' chances are 'libc6-dev' is the package you are missing and issuing the command:

sudo apt-get install build-essential

should fix things up for you.
Hope that helps.