1.无法进行工程编译:
出现错误:
[Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__cpu_features_init'
解决方案:
1. Download new MINGW compiler at http://www.mingw.org/ and install it in C:\MinGW\
2. in Dev c++. right click on menu Tools>Compiler options.
3. in tab "Directory", right click on "Libraries" and change "C:\Program Files\Dev-Cpp\Lib" to "C:\MinGW\lib"
4. Compile!
2.无法调试:
和上一个问题的解决方案一样
将二进制 改成 c:\MinGW\bin
本文解决在使用DEV c++编译项目时遇到的Linker错误,包括undefined reference to `__dyn_tls_init_callback' 和 `__cpu_features_init'。通过更换编译器至MinGW并调整编译设置可以解决此问题。
4万+

被折叠的 条评论
为什么被折叠?



