找不到libstdc ++ - 6.dll [英] libstdc++-6.dll not found

查看:3528
本文介绍了找不到libstdc ++ - 6.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做一个项目(一个游戏是具体的),我觉得我应该开始与不同的图书馆。因此,在执行此操作时,我重新安装了 Code :: Blocks 并设置了我的新库和包含。



但是现在我有一个问题,开始u [我的新项目,测试是否所有的包括工作。这个问题是: libstdc ++ - 6.dll没有找到。开始我想知道我是否可以在线找到这个文件,但它无处可找到(或至少很多地方,我搜索...)不久之后,我尝试加载我的旧项目,同样的问题再次发生(wierd ...。)。我认为它的也许我的编译器,所以我使用我的旧编译器,它做同样的事情!我现在的问题是明天(今天是这样)



所以我的问题是:如果任何人有这个问题,你会如何解决? p>

Im使用Code :: Blocks,在Windows Vista 32位上使用MinGW作为编译器。



> * EDIT ***



这里是我项目中的Build选项。注意这些是项目中的设置,而不是全局编译器:



在(项目名称) - >编译器设置 - > Otehr选项:



(我使用 // 来分隔命令)

  -mthreads // 
-fmessage-length = 0 //
-fexceptions //
-fident //

在(项目名称) - >编译器设置 - >#define:

 code> WIN32 // 
_WINDOWS //

> Linker settings-> Other linker options:

  -static-libstdc ++ // 
-static-libgcc //
-Wl, - enable-auto-image-base //
-Wl, - add-stdcall-alias //
-Wl, - enable-auto-import //

在链接器 - >链接库中,我有一个 .a 扩展,这些文件包括Bullet PHysics,Ogre3D和SFML



在搜索目录中,我有到MinGW / bin和MinGW / lib目录,以及到不同库的其他链接。



我的编译器是MinGW,一个用于windows 32位的GNU GCC编译器。而IDE是Codeblocks。还要注意,在项目的Debug和Release设置中,没有什么。



这些设置大多数也是从Ogre3D应用程序设置教程如果有任何帮助。

解决方案

如果你使用MingW在Windows上编译C ++代码,你可能想添加 -static-libgcc code> -static-libstdc ++ 以静态链接C和C ++标准库,因此不需要携带任何单独的副本。版本管理库是Windows的一个痛苦,所以我发现这种方法是创建Windows二进制文件的最快,最干净的解决方案。


I have been working on a project (a game to be specific) and I feel that I should start over with different libraries. So when doing this I reinstalled Code::Blocks and setup my new libraries and includes.

But as of now Im having a problem starting u[ my new project to test if all of the includes work. This problem is: libstdc++-6.dll was not found. At first i wondered if I could just find this file online, but its nowhere to be found(or at least the many places I have searched...) Soon after, I tried loading up my old project, and the same problem happened again(wierd... ._.) I was thinking its maybe my compiler, so I used my older compiler and it did the same thing! At this moment I held the problem off for tomorrow(which is today)

So my question is: If anyone else had this problem, how would you solve it?

Im using Code::Blocks with MinGW as the compiler on Windows Vista 32 bit.

*EDIT***

Here are the Build options in my project. Note that these are the settings in the Project, not the global compiler:

In (project name)->Compiler settings->Otehr options:

(I use // to seperate the commands)

-mthreads//
-fmessage-length=0//
-fexceptions//
-fident//

In (project name)->Compiler settings->#define:

WIN32//
_WINDOWS//

In (project name)->Linker settings->Other linker options:

-static-libstdc++//
-static-libgcc//
-Wl,--enable-auto-image-base//
-Wl,--add-stdcall-alias//
-Wl,--enable-auto-import//

In linker->link libraries i have various links to files with a .a extension, these files include Bullet PHysics, Ogre3D, and SFML

In the search directories i have links to the MinGW/bin, and the MinGW/lib directories, along with other links to different libraries.

My Compiler is MinGW, a GNU GCC compiler for windows 32 bit. and the IDE is Codeblocks. Also note that in Debug and Release settings on the project, there is nothing.

Most of these setings are also pieces that i got from the Ogre3D Application setup tutorial if that is of any help.

解决方案

If you are using MingW to compile C++ code on Windows, you may like to add the options -static-libgcc and -static-libstdc++ to link the C and C++ standard libraries statically and thus remove the need to carry around any separate copies of those. Version management of libraries is a pain in Windows, so I've found this approach the quickest and cleanest solution to creating Windows binaries.

这篇关于找不到libstdc ++ - 6.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆