User forums > Using Code::Blocks

Linking libraries (.lib fortran)

<< < (3/4) > >>

stahta01:

--- Quote from: Librarylinker on February 13, 2020, 03:10:19 pm ---
--- Quote from: stahta01 on February 13, 2020, 12:39:14 pm ---Sample FORTRAN file builds OK for me; with minor code edit.

--- End quote ---

What did you do?

You just installed the file from http://netlib.org/lapack/lapack.tgz by using MSys2 MinGW64, is that it? (I'm not experienced in dealing with those things, I'm not sure if I understood what you did. I guess you didn't create a .a library and simply linked it. And also you are not working with the .lib I provided, right?)

Would you be able to compile it with Codeblocks IDE?

--- End quote ---

I used the MSys2 Mingw64 64 bit GCC [FORTRAN] compiler!
The Code::Blocks IDE is not an compiler!!!!!!
I used mingw .a libraries.
I used the MSys2 Mingw64 lapack package that installs blas library.

Tim S.

Librarylinker:
I know it isn't a compiler, I was asking if it would work if I used CodeBlocks IDE and mingw64 i.o. MSys2 and mingw64

When I say "what did you do" means "what should i do to make it work by using CodeBlocks IDE and mingw64" or "what are comprehensivles steps I should do to install lapack package".

Notice, I just want my program to run and stop showing the undefined referrence error...

I know what is an IDE and a compiler... my problem is how to handle the libraries... could you or anybody guide with this, please? I.e. tell the steps to make the lapack be recognized and stop the error...

stahta01:
Build blas library using your GCC compiler and the lapack source code!

Or you could use the MSys2 MinGW64 bit environment and its Compiler and Libraries!
https://www.msys2.org/

This is not a proper website to help a newbie to solve off topic issues!

Or, you could post the build log! But, you are too lazy to do that!

Tim S.


stahta01:
The libraries you are trying to use were designed for use by C or C++.

The functions do not have the trailing "_" wanted by FORTRAN!

Tim S.

stahta01:
Please find a FORTRAN support website to help you learn how to use the lapack FORTRAN library without trying to use the C library version of it.

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version