MinGW 编译出现g++: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found错误的解决方法
2014-11-22 19:11
3603 查看
在win 7下使用MinGW编译一个c文件的时候莫名出现“g++: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found”这样的错误,在网上搜了好久,有的说是MinGW安装g++的过程中可能出现错误,需要删掉安装的文件然后重新安装。但是试过之后发现仍然没有解决我的问题。于是自己就想着去下载这个liblto_plugin-0.dll这个文件。但是网上关于这个文件的下载链接少的可怜,好不容易找到了一个,解压时又要输入密码,在页面上找了好久也没有找到密码。最后通过另外一个很不起眼的小网站上找到了相关的下载链接和解压密码。
下载下来之后简单的以为将其放在MinGW\bin目录下就完事了。谁知该编译错误依旧存在。而后又从这里了解到该dll需要放在C:\MinGW\libexec\gcc\mingw32\4.8.1目录下面(4.8.1是我安装的g++的版本)。果然,将该dll放在该目录之后g++可以正常的进行编译了。
为了方便大家,我将该文件上传到了csdn中,地址为:http://download.csdn.net/detail/sky_tan/8187721
下载下来之后简单的以为将其放在MinGW\bin目录下就完事了。谁知该编译错误依旧存在。而后又从这里了解到该dll需要放在C:\MinGW\libexec\gcc\mingw32\4.8.1目录下面(4.8.1是我安装的g++的版本)。果然,将该dll放在该目录之后g++可以正常的进行编译了。
为了方便大家,我将该文件上传到了csdn中,地址为:http://download.csdn.net/detail/sky_tan/8187721
相关文章推荐
- mingw编译x264 dll时出现 "make[1]: lib: Command not found"的解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- 安装mysql ./configure编译时出现错误:error: No curses/termcap library found解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- VS2010 出现错误提示“Error Creating Control - Object reference not set to an instance of an objec” 的解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译php的时候,报configure: error: mcrypt.h not found. Please reinstall libmcrypt.错误的解决办法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 编译Mysql configure: error: No curses/termcap library found 的错误解决方法
- 编译mysql提示错误:configure: error: No curses/termcap library found 解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- delphi 2007 for .net 中 建立DLL,编译时出现错误的解决方法.
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- IIS出现The specified module could not be found错误解决方法!