This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgfortran linking problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]