On Tue, 7 Dec 1999, Igor Mozetic wrote: > > How does one compile a Fortran program with Lapack library ??? > I tried: > > # g77 File.for > /tmp/ccRuoSL4.o: In function `MAIN__': > /tmp/ccRuoSL4.o(.text+0x954): undefined reference to `dsbtrd_' > /tmp/ccRuoSL4.o(.text+0x9b2): undefined reference to `dpteqr_' > collect2: ld returned 1 exit status > > Of course, so next: > > # g77 -lliblapack File.for > /usr/bin/ld: cannot open -lliblapack: No such file or directory > collect2: ld returned 1 exit status > > # g77 -L/usr/lib -lliblapack File.for > /usr/bin/ld: cannot open -lliblapack: No such file or directory > collect2: ld returned 1 exit status > > # ldconfig (no effect) > > Lapack-dev is installed, of course: > > # dpkg -l | grep lapack > ii lapack 2.0.1-2.1 > ii lapack-dev 2.0.1-2.1 > ii lapack-doc 2.0.1-3.1 > > # dpkg -L lapack-dev > /. > /usr > /usr/lib > /usr/lib/liblapack.a > /usr/lib/libblas.a > /usr/lib/liblapack.so > /usr/lib/libblas.so > ... > > -Igor Mozetic >
something like g77 -o aaa aaa.f -llapack -lblas -lm should do the trick OK