【发布时间】:2021-06-01 22:04:00
【问题描述】:
编者按:类似“程序错误点_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_不能在动态链接库libstdc++-6.dll中定位”的错误信息,原因相同,解决方法相同。 p>
如果我想在 Windows 中运行我的 Irrlicht C++ 控制台应用程序,我会不断收到此错误:
the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll
我将 CodeBlocks v12.11 与 MinGW 和 Irrlicht v1.8 引擎一起使用。我设置正确。在我的电脑上还安装了一个带有 MinGW 的 Qt。会不会有冲突?
这是源代码:
#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。
除了make.exe 之外,每个文件(设置中显示了一些文件)都位于bin 下。这正常吗?
“自动检测”按钮还会提示上述路径。
【问题讨论】:
-
您记得在链接器选项卡下编辑设置->搜索目录吗? (因此链接器可以找到二进制文件。)
标签: c++ qt mingw codeblocks irrlicht