The Linux compile link could not find a workaround for the library file.

Source: Internet
Author: User

Today's compilation appears ld:0706-006 cannot find or open library file:-L Xerces-c_static,ld:open (): A file or directory in the path name does Es not exist. This is too familiar to

A familiar link error.

Very simply, the compiler opened XERCES-C_STATIC.A failed. This error often occurs because the catalog library file XERCES-C_STATIC.A is not compiled or does not exist.

So the first reaction, to see if the XERCES-C_STATIC.A file exists, found that the file is already there. Then check the makefile and the Library directory is set up correctly. Anyway clean compiled several times, the problem still, suddenly thought, opened

The file fails and does not necessarily exist, or it may be insufficient user rights. So hurriedly check out, sure enough to find that the user does not have XERCES-C_STATIC.A file Read permission. This project outside of the library, before I directly with the root user in

Other directories copied over, resulting in insufficient user rights, at compile time, cannot open the corresponding. A file, after modifying the xerces-c_static.a file, the problem is resolved. A small copy operation, most likely the key to the bug, the details

Determining success or failure is especially important in coding. pull away, record the problem, hope to give yourself a lesson, but also hope to help others.

The Linux compile link could not find a workaround for the library file.

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.