Ubuntu system, GSL Library link problem-undefined reference to ' cblas_xxx '

Source: Internet
Author: User

The following error message appears when the program is being debugged under Ubuntu system today:

[Ten%]linking CXX executable. /test_coco/usr/local/lib/libgsl.so:undefined reference to ' CBLAS_ZTRSV'/usr/local/lib/libgsl.so:undefined reference to ' Cblas_scasum'/usr/local/lib/libgsl.so:undefined reference to ' Cblas_izamax'/usr/local/lib/libgsl.so:undefined reference to ' Cblas_dnrm2'/usr/local/lib/libgsl.so:undefined reference to ' Cblas_zdotc_sub'Collect2:error:ld returned 1 exit status Make[2]: * * * [Test_coco] Error1 Make[1]: * * * [Src/cmakefiles/test_coco.dir/ALL] Error2 Make: * * * [ALL] Error2

As can be seen, the previous compilation is not a problem, in the last link stage error, according to the hint, LIBGSL library link related files when there is a problem. The LIBGSL library relies on related files in the Clbas library. So after the link GLS also need to add to the Gslcblas link, problem solving!

Ubuntu system, GSL Library link problem-undefined reference to ' cblas_xxx '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.