Author Topic: Linking libraries (.lib fortran)  (Read 2815 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: Linking libraries (.lib fortran)
« Reply #15 on: February 14, 2020, 01:17:49 am »
Found a way for a newbie like you to build the fortran file.

Use libopenblas.a from

Tim S.

-------------- Build: Debug in blas_test (compiler: GNU Fortran Compiler)---------------

x86_64-w64-mingw32-gfortran.exe -Jobj\Debug\ -ffree-form -Wall  -g     -c C:\SourceCode\test\blas_test\main.f90 -o obj\Debug\main.o
x86_64-w64-mingw32-gfortran.exe -L..\blas_test -o bin\Debug\blas_test.exe obj\Debug\main.o   -lopenblas
Output file is bin\Debug\blas_test.exe with size 16.58 MB
Process terminated with status 0 (0 minute(s), 3 second(s))
0 error(s), 0 warning(s) (0 minute(s), 3 second(s))
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
When in doubt, read the CB WiKi FAQ.