gpt4 book ai didi

c++ - 找不到过程入口点__gxx_personality_v0

转载 作者:行者123 更新时间:2023-12-01 14:58:13 25 4
gpt4 key购买 nike

编者注:与“过程错误点_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_不能位于动态链接库libstdc++-6.dll中”类似的错误消息具有相同的原因并且适用相同的解决方案。

如果要在Windows中运行Irrlicht C++控制台应用程序,我会不断收到此错误:
the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll
我在MinGW和Irrlicht v1.8引擎中使用CodeBlocks v12.11。我正确设置了。在我的计算机上,还安装了QGW和MinGW。有可能发生冲突吗?

这是源代码:

#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;
}

我将编译器配置为 C:\CodeBlocks\MinGW
除了 bin之外,每个文件(在“设置”中都有显示)都位于 make.exe下。那是正常的吗?

自动检测按钮还建议上面的路径。

最佳答案

我也有这个问题。这为我解决了:

  • 转到您的MinGW文件夹(应为C:\ MinGW)
  • 打开bin文件夹。
  • 应该有一个名为libstdc++-6.dll的文件
  • 将此文件复制到与可执行文件相同的目录中。

  • 那应该工作...

    关于c++ - 找不到过程入口点__gxx_personality_v0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59780011/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com