Troubleshooting error in Dev C + + [Linker error] undefined reference to ' __dyn_tls_init_callback '

Source: Internet
Author: User

Error resolution in Dev C + + [Linker error] undefined reference to ' __cpu_feat ...

Solve the coexistence problem between NOIP environment guide and Dev.

After loading the NOIP test environment Guide, when I wanted to use the previous dev C + + compiler, I found that there was a problem with the compilation and couldn't find the library that compiled the connection.

The error message is as follows:
[Linker Error] undefined reference to ' __cpu_features_init '
LD returned 1 exit status

The Guide (gait Universal IDE) is a lightweight integrated development environment developed by the Beihang Gait Research group and designed specifically for NOI players. The guide has the advantages of cross-platform, simple operation, support c/c++/pascal three languages and single-file compiling and debugging.

The problem with the connection is that the NOIP environment uses the MINGW compilation environment, which conflicts with Dev, no matter how the dev C + + is not resolved.

Workaround: Add the MinGW library to dev C + + and let it be set to find first, using the MinGW lib.
In Dev C + +, open the library, directory----compile options, tools

Add the MinGW under the lib-> and move it to the top.

I mingw here is in the C root directory, after the setup is complete, OK. Open the DEC compiler again to complete the compilation of the source code.

This way, the guide and dev C + + can coexist.


Troubleshooting error in Dev C + + [Linker error] undefined reference to ' __dyn_tls_init_callback '

Related Article

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.