0

I need to start a program with using cblas.h library. I download cblas.tgz and decompile it, I Run the command:

ln -s Makefile.LINUX Makefile.in

and try to run my program.

But I have this error.

enter image description here

I run my program used gcc main.c -cblas or gcc main.c, but the error is same.

I need to add a parameters in gcc compile?

Arun A S
  • 6,421
  • 4
  • 29
  • 43
TheAvenger
  • 458
  • 1
  • 6
  • 19
  • 3
    I don't think you decompile anything, and `ln -s ...` has nothing to do with compilation, I believe you need something like `make -f Makefile.LINUX`, and then `gcc -L/path/to/cblas/binary -lcblas`, `gcc -cblas` is wrong. – Iharob Al Asimi Apr 19 '15 at 13:44
  • i try but dont' work :/ thanks for your reply :) – TheAvenger Apr 19 '15 at 20:01
  • Inline the error message as plain text. And you appear to not be including the CBLAS header. – Jeff Hammond Apr 20 '15 at 01:54

1 Answers1

0

i had the same problem. 1. have you compiled blas and you have the libblas.a? if not, do it. 2. have you update the BLLIB field in Makefile.in to point to your directory. if so you can just go to your directory where the cblas makefile.in is and type make. it should work

Zrilit
  • 29
  • 1
  • 4