www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - VisualD building with GDC setting library path

reply "kerdemdemir" <kerdemdemir hotmail.com> writes:
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?
Jul 18 2015
parent Rainer Schuetze <r.sagitario gmx.de> writes:
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"
Jul 18 2015