Skip to content

How to link Lapack on Windows? #1

Description

@Beliavsky

Thanks for your project. Trying it on Windows, I get the error below. How am I supposed to link with Lapack?

>cd foreig

c:\...\foreig
>fpm install --prefix .
 + mkdir build\dependencies
Initialized empty Git repository in C:/.../foreig/build/dependencies/kinds/.git/
From https://github.com/gha3mi/kinds
 * branch            HEAD       -> FETCH_HEAD
<ERROR> Project does not contain any installable targets
STOP 1

c:\...\foreig
>fpm build
[  0%]                      kinds.f90
[ 33%]                      kinds.f90  done.
[ 33%]                     foreig.f90
[ 66%]                     foreig.f90  done.
[ 66%]                    libforeig.a
[100%]                    libforeig.a  done.
[100%] Project compiled successfully.

c:\...\foreig
>fpm test
[  0%]                      test1.f90
[ 50%]                      test1.f90  done.
[ 50%]                      test1.exe
[100%]                      test1.exe  done.

c:/programs/gcc/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/bin/ld.exe: build\gfortran_50F62D7499E64B65\foreig\libforeig.a(src_foreig.f90.o): in function `dsyev_rel':
c:\...\foreig/././src/foreig.f90:69: undefined reference to `dsyev_'
c:/programs/gcc/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:\...\foreig/././src/foreig.f90:80: undefined reference to `dsyev_'
collect2.exe: error: ld returned 1 exit status
<ERROR> Compilation failed for object " test1.exe "
<ERROR> stopping due to failed compilation
STOP 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions