July 18, 2015 VisualD building with GDC setting library path | ||||
---|---|---|---|---|
| ||||
Hi, I am tring to build Cristi Cobzarenco's fork of Scid which has LAPACK,BLAS dependency. I add all modules of Scid to my project and I am tring to build it within my project. I add LibraryFiles: liblapack.a libblas.a libtmglib.a libgfortran.a etc.. via menu configuration properties-->Linker --> General ---> LibraryFiles . Even though I set "C:\Qt\Tools\mingw491_32\i686-w64-mingw32\lib" path which has libgfortran.a from Visual D Settings -->Library Paths; I am getting error : gdc: error: libgfortran.a: No such file or directory. Libraries only works if I copy and paste them to my project folder. And coping all libraries fortran.a , pthread.a etc... seems not logical to me. I read there is a known isssue with sc.ini but it should only be with DMD not with GDC. How can I set library path with visualD while building with GDC? |
July 18, 2015 Re: VisualD building with GDC setting library path | ||||
---|---|---|---|---|
| ||||
Posted in reply to kerdemdemir |
On 18.07.2015 15:07, kerdemdemir wrote:
> Hi,
>
> I am tring to build Cristi Cobzarenco's fork of Scid which has
> LAPACK,BLAS dependency.
>
> I add all modules of Scid to my project and I am tring to build it
> within my project.
>
> I add LibraryFiles: liblapack.a libblas.a libtmglib.a libgfortran.a
> etc.. via menu
> configuration properties-->Linker --> General ---> LibraryFiles . Even
> though I set "C:\Qt\Tools\mingw491_32\i686-w64-mingw32\lib" path which
> has libgfortran.a from Visual D Settings -->Library Paths;
>
> I am getting error :
>
> gdc: error: libgfortran.a: No such file or directory.
>
> Libraries only works if I copy and paste them to my project folder. And
> coping all libraries fortran.a , pthread.a etc... seems not logical to me.
>
> I read there is a known isssue with sc.ini but it should only be with
> DMD not with GDC. How can I set library path with visualD while building
> with GDC?
GDC does not search libraries passed by filename on the command line. You either have to specify the full path or use option -l, i.e.
- add "-llapack -lblas -ltmglib -lgfortran" etc to "Library Files"
- set the search path either in the global or the project option "Library Search Path"
|
Copyright © 1999-2021 by the D Language Foundation