Skip to content

compiling blas with -lgfortran #2

Open
@iurisegtovich

Description

@iurisegtovich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions