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 '