Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Eclipse, Photran, Cygwin and Lapack

The linker probably takes the argument after -L as a directory where the
-l libraries may be found. For example, to link with
/usr/local/lib/libblas.a, specify -L/usr/local/lib -lblas. If Photran
generated the makefile, edit the project properties accordingly.

Mike Garrahan

On 08/15/2012 10:38 AM, Ricardo Santos wrote:
>    I am trying to compile a project using the lapack functions, but I get
> an error on the BLAS linking.
> 
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot
> find -lblas
> 
> My make file is as follows:
> # [...]
> 
> all: src/HelloFortran.f90
> $(FORTRAN_COMPILER) -O2 -g \
> -o bin/HelloFortran \
> src/HelloFortran.f90 -L -llapack -lblas



Back to the top