This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37953] New: undefined reference to '_gfortran_*'
- From: "successful dot jiang at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2008 16:46:49 -0000
- Subject: [Bug fortran/37953] New: undefined reference to '_gfortran_*'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
hi there,
I am testing a package with three source files.
I saw lots of information about solving 'undefined reference to ###', but it
stucks me.
compile the object file with
'gfortran -c optnhp3ma.f middle3.f optnhp3.f'
when I run these objects, coupled with a problem input. Things happen...
optnhp3ma.f:(.text+0x2c): undefined reference to `_gfortran_set_std'
optnhp3ma.f:(.text+0xe0): undefined reference to `_gfortran_st_write'
optnhp3ma.f:(.text+0xfe): undefined reference to `_gfortran_transfer_character'
optnhp3ma.f:(.text+0x163): undefined reference to `_gfortran_transfer_array'
optnhp3ma.f:(.text+0x171): undefined reference to `_gfortran_st_write_done'
optnhp3ma.f:(.text+0x1e3): undefined reference to `_gfortran_st_write'
optnhp3ma.f:(.text+0x201): undefined reference to
`_gfortran_transfer_character'
optnhp3ma.f:(.text+0x221): undefined reference to `_gfortran_transfer_real'
optnhp3ma.f:(.text+0x22f): undefined reference to `_gfortran_st_write_done'
How can solve this out? it is a little urgent...
if I add the -lgfortran, like that 'gfortran -c optnhp3ma.f middle3.f optnhp3.f
-L/usr/lib -lgfortran'
errro message:
'gfortran: -lgfortran: linker input file unused because linking not done'
Please give me a hand
--
Summary: undefined reference to '_gfortran_*'
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: successful dot jiang at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37953