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?
On my Arch linux system, I have two BLAS implementations installed:
cblas (3.11.0-1)andopenblas (0.3.21-1).I can build my project when I put
"lflags": ["-lcblas"]into mydub.jsonfile. But if I replace it with"lflags": ["-lopenblas"]I got linker error:undefined reference to 'cblas_snrm2'. This is expected aslibopenblas.sodoes not havecblas_snrm2symbol, instead it havesnrm2symbol.So how can I link my project against OpenBLAS?