Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am trying to compile a code package, which makes use of cblas and Lapack. Thus, after specifying the path of Lapack and cblas in its makefile, when I try to make or compile, I get the following error

   undefined reference to symbol 'dgemm_'
    'dgemm_' is defined in DSO /usr/lib/libblas.so.3gf so try adding it to the linker        
    command line

If anybody has faced this error earlier, can you please tell me how to resolve it? I tried to search and ended up here,


I dunno if this is the right direction, but please help me out here. Am just stuck, trying to compile few codes. The major thing I want to know is how to do this -

    'dgemm_' is defined in DSO /usr/lib/libblas.so.3gf so try adding it to the linker        
    command line

Its just my thought, but will this solve the problem? Please help me.

share|improve this question
Did you try linking with BLAS by using -lblas? The static BLAS library should be part of the package libblas-dev –  Matthäus Brandl Oct 24 '13 at 0:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.