无法找到过程入口点__gxx_personality_v0 [英] the procedure entry point __gxx_personality_v0 could not be located
问题描述
如果我想在Windows中运行我的Irrlicht C ++控制台应用程序,我会收到此错误:
程序入口点__gxx_personality_v0不能位于动态链接库libstdc ++ - 6.dll
我使用CodeBlocks v12.11与MinGW和Irrlicht v1.8引擎。我正确设置。在我的电脑上还有一个Qt安装了MinGW。是否有可能发生冲突?
这是源代码:
#include< irrlicht.h>
使用namespace irr;
using namespace core;
使用命名空间场景;
使用命名空间视频;
using namespace io;
using namespace gui;
int main(){
IrrlichtDevice * device = createDevice(video :: EDT_OPENGL);
if(!device)
return 1;
IVideoDriver * driver = device-> getVideoDriver();
ISceneManager * smgr = device-> getSceneManager();
IGUIEnvironment * guienv = device-> getGUIEnvironment();
guienv-> addStaticText(LHello World,core :: recti(10,10,100,30));
device-> setWindowCaption(LHello World! - Irrlicht Engine Demo);
while(device-> run()){
driver-> beginScene(true,true,SColor(250,190,1,2));
smgr-> drawAll();
guienv-> drawAll();
driver-> endScene();
}
device-> drop();
return 0;
}
我将编译器配置为 C:\CodeBlocks \MinGW
。
每个文件(设置中显示一些)位于 bin
下,但 make.exe
。这是正常的吗?
自动检测按钮也建议上面的路径。
我也有这个问题。这对我固定:
- 前往您的MinGW资料夹(应为C:\MinGW)
- 打开bin文件夹。
- 应该有一个名为libstdc ++ - 6.dll的文件
- 将此文件复制到可执行文件。
这应该可以工作...
I keep getting this error if I want to run my Irrlicht C++ Console Application in Windows:
the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll
I am using CodeBlocks v12.11 with MinGW and the Irrlicht v1.8 engine. I set it up correctly. On my computer there is also a Qt installed with MinGW. Is it possible that there is a conflict?
This is the source code:
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main() {
IrrlichtDevice *device = createDevice( video::EDT_OPENGL);
if (!device)
return 1;
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addStaticText(L"Hello World", core::recti(10, 10, 100, 30));
device->setWindowCaption(L"Hello World! - Irrlicht Engine Demo");
while(device->run()) {
driver->beginScene(true, true, SColor(250, 190, 1, 2));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
I configured the Compiler to C:\CodeBlocks\MinGW
.
Every file (there are some shown in the Settings) is located under bin
, except make.exe
. Is that normal?
The Auto-detect button also suggests the path above.
I had this problem as well. This fixed it for me:
- Go to your MinGW folder (should be C:\MinGW)
- Open the bin folder.
- There should be a file called libstdc++-6.dll
- Copy this into the same directory as your executable.
That should work...
这篇关于无法找到过程入口点__gxx_personality_v0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!