Dear Debian folks--

I have used the synaptic package manager to install gfortran-4.0 on my
linux/ubuntu machine.  The library package libgfortran0 was also installed
(version 4.0.3-lubuntu5).  But somehow the libraries are messed up.

In particular, the following program "hello.f90":

program hello

   print *, 'hello'

end program hello

gives the compilation/linking results:

[EMAIL PROTECTED]:~/exactFG_f90$ gcc -c hello.f90
[EMAIL PROTECTED]:~/exactFG_f90$ gcc hello.o -o hello
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/crt1.o: In function
`_start':../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
hello.o: In function `MAIN__':hello.f90:(.text+0x7): undefined reference
to `_gfortran_filename'
:hello.f90:(.text+0x11): undefined reference to `_gfortran_line'
:hello.f90:(.text+0x1b): undefined reference to `_gfortran_ioparm'
:hello.f90:(.text+0x25): undefined reference to `_gfortran_ioparm'
:hello.f90:(.text+0x2e): undefined reference to `_gfortran_st_write'
:hello.f90:(.text+0x3d): undefined reference to
`_gfortran_transfer_character'
:hello.f90:(.text+0x42): undefined reference to `_gfortran_st_write_done'
collect2: ld returned 1 exit status

I think there is something going on with my libraries and I don't understand.

Thanks!

Ed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to