News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Linking libraries (.lib fortran)

Started by Librarylinker, February 13, 2020, 12:57:32 AM

Previous topic - Next topic

stahta01

Found a way for a newbie like you to build the fortran file.

Use libopenblas.a from https://sourceforge.net/projects/openblas/files/v0.3.7/
Download OpenBLAS-0.3.7-x64.zip

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]