Undefinedreferenceto '_ Unwind_Resume' Solution

Source: Internet
Author: User
Undefinedreferenceto '_ Unwind_Resume solution-Linux general technology-Linux programming and kernel information. For details, see the following. In Linux, when the system switches from AS5 to AS4, the undefined reference to '_ Unwind_Resume' occurs in the compiled program, -Bdynamic-lgcc_s.

The correct position is to add to the end of the command when the executable program is generated.

Specifically, if the Mikefile used for compilation is as follows:

GCC_C = g ++-c-g-Wall
GCC_O = g ++-o
CFLAG =-Wno-deprecated-I/usr/include/mysql

Nce-larbin1 htmlparser1 $ (O_FILE)
$ (GCC_O) nibd $ (O_FILE) $ (CFLAG)

Add it to the end of CFLAG, that is, CFLAG =-Wno-deprecated-I/usr/include/mysql-Wl,-Bdynamic-lgcc_s, that is, NCAP is the executable file to be generated. command: $ (GCC_O) nibd $ (O_FILE) $ (CFLAG). Before nmms, g ++-o and dynamic link library are followed!

If you are friends who use a single command, you can simply add it to the end of the generated executable file!

To sum up, the parameter '_ Unwind_Resume' varies with the dynamic link library in different LINUX versions. Therefore, after changing the version, you need to call the library where it is located, now that the dynamic link library is called, add it to it! I hope it will help my friends who have encountered this problem like me.

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.