This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: libgfortran linking problem
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tim Holme <timholme at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 26 Jun 2009 15:03:42 -0700
- Subject: Re: libgfortran linking problem
- References: <8aeeb60906251543s2bd5b03fsb1a99c7874d2f4b6@mail.gmail.com> <8aeeb60906251545t68e8b648v1006a43d3736180d@mail.gmail.com> <8aeeb60906261450n11ed547v3c24f49a737c041@mail.gmail.com>
On Fri, Jun 26, 2009 at 02:50:22PM -0700, Tim Holme wrote:
> when compiling a fortran program with gfortran and linking with
> -lgfortran, I'm having undefined references to gfortran programs.
>
>gfortran -o foo?[lots of .o?files]??-L/usr/pubsw/lib/ -llapack \
> -L/usr/pubsw/lib/ -lblas -L/usr/lib/gcc/x86_64-linux-gnu/4.3 \
> -lgfortran -lgfortranbegin
>
(snip)
> Any ideas?? Thanks very much,
Try removing "-L/usr/lib/gcc/x86_64-linux-gnu/4.3
-lgfortran -lgfortranbegin" from your command line.
--
Steve