编辑注:类似于“在动态链接库libstdc++-6.dll
中找不到过程错误点_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_
”的错误消息具有相同的原因,相同的解决方法适用。
如果我想在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
。
每个文件(在设置中有一些显示)都位于bin
下,除了make.exe
。这正常吗?
自动检测按钮也建议使用上述路径。