Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to symbol 'cblas_sscal'? #822

Closed
xtttttttttx opened this issue Sep 14, 2017 · 6 comments
Closed

undefined reference to symbol 'cblas_sscal'? #822

xtttttttttx opened this issue Sep 14, 2017 · 6 comments

Comments

@xtttttttttx
Copy link

xtttttttttx commented Sep 14, 2017

I've successfully built dlib on Ubuntu16.04 which made me very happy. But when I compile an example face_landmarks_detection_ex.cpp with dlib, it complained as follows:

>> g++ -std=c++11 fld.cpp -o fld `pkg-config --cflags --libs dlib-1`         
/usr/bin/ld: /tmp/cc6IpsiA.o: undefined reference to symbol 'cblas_sscal'
//usr/lib/libcblas.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

I've googled it for a long time. But there's no solution for this.

@davisking
Copy link
Owner

Something is wrong with your blas library. Install openblas or some other blas that isn't missing symbols.

@emavgl
Copy link

emavgl commented Sep 20, 2017

Same problem here, openblas did not solve.

@davisking
Copy link
Owner

You guys should use cmake. Follow the instructions here: http://dlib.net/compile.html

@emavgl
Copy link

emavgl commented Sep 21, 2017

cmake works fine, but the problem occurs when linking dlib to another project.
However, I solved installing OpenBLAS (compiling and linking it) as you suggested and using this guide. Seems that the problem was a non-updated package.

@PapaMadeleine2022
Copy link

Same problem

@arju1996
Copy link

same issue still persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants