DlangScience/cblas

Can't get it working with OpenBLAS on Arch linux

Opened this issue · 1 comments

On my Arch linux system, I have two BLAS implementations installed: cblas (3.11.0-1) and openblas (0.3.21-1).
I can build my project when I put "lflags": ["-lcblas"] into my dub.json file. But if I replace it with
"lflags": ["-lopenblas"] I got linker error: undefined reference to 'cblas_snrm2'. This is expected as libopenblas.so does not have cblas_snrm2 symbol, instead it have snrm2 symbol.

So how can I link my project against OpenBLAS?

I have checked libopenblas.so on my machine and it does has cblas_snrm2 in it.

I think you probably want to do "libs": ["cblas"] or "libs": ["openblas"] instead of lflags.