This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: errors while using -lgfortran instead of libg2c.a
- From: "Timothy C Prince" <tprince at myrealbox dot com>
- To: satyaakam at gmail dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 15 Mar 2007 23:14:41 +0000
- Subject: Re: errors while using -lgfortran instead of libg2c.a
- Reply-to: tprince at nospamcomputer dot org
-----Original Message-----
From: "satyaakam goswami" <satyaakam@gmail.com>
To: gcc-help@gcc.gnu.org
Date: Thu, 8 Mar 2007 11:07:05 +0530
Subject: errors while using -lgfortran instead of libg2c.a
we getting undefined symbol:`d_sign', please suggest.
/tsi71/pubref/liba/lnx86_gcc_ia32/liblapack.a
/tsi71/pubref/liba/lnx86_gcc_ia32/libblas.a
/tsi71/pubref/liba/lnx86_gcc_ia32/liblamatrix++.a -lm -lgfortran
/tsi71/pubref/liba/lnx86_gcc_ia32/liblapack++.a(dtimmg.o): In function
`dtimmg_':
dtimmg.c:(.text+0xe47): undefined reference to `d_sign'
dtimmg.c:(.text+0xf11): undefined reference to `d_sign'
dtimmg.c:(.text+0x1004): undefined reference to `d_sign'
dtimmg.c:(.text+0x10de): undefined reference to `d_sign'
dtimmg.c:(.text+0x120d): undefined reference to `d_sign'
Satya
_____________________________
It's probably better not to mix libraries built with libg2c with gfortran. One would think that a linux distribution which supports a satisfactory gfortran (gcc 4.1 or newer) would have libraries built for libgfortran. Older libraries might be better rebuilt using gfortran.
Tim Prince