作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
编者注:与“过程错误点_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
下。那是正常的吗?
最佳答案
我也有这个问题。这为我解决了:
关于c++ - 找不到过程入口点__gxx_personality_v0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63893775/
这个问题在这里已经有了答案: 关闭11年前. Possible Duplicate: Undefined Symbol ___gxx_personality_v0 on link 我对以下程序有疑问。
我做了一些搜索,所有答案似乎都建议使用 clang++ 而不是 clang(或者更确切地说是 g++ 代替 gcc),这就是我最初所做的。尽管如此,问题仍然存在,无论是 clang++ -Wall -
我是一名优秀的程序员,十分优秀!