Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling blas with -lgfortran #2

Open
iurisegtovich opened this issue May 2, 2017 · 1 comment
Open

compiling blas with -lgfortran #2

iurisegtovich opened this issue May 2, 2017 · 1 comment

Comments

@iurisegtovich
Copy link

Quoting your README.md
"for some of the BLAS and CBLAS examples the -lgfortran is requred to compile. I don't know why!"

you probably mean link with -lgfortran, and not *compile.
that happens because when you want to link objects, some of which were compiled with gcc and some with gfortran, then you must use gfortran to link, or gcc plus the -lgfortran library

example:
gfortran fobject.o cobject.o -o program.bin
gcc fobject.o cobject.o -o program.bin -lgfortran

@Foadsf
Copy link
Owner

Foadsf commented May 2, 2017

Well, As I mentioned in my other reply, I did this while ago and I do not remember exactly what was the problem. But I'm sure I knew the difference between the two different ways to compile a mixed object file at the moment. I believe the issue had to do with lots of failed attempts I had to install/compile the libraries and something was messed up with my operating system probably. Thanks for your comment anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants