简体   繁体   English

C ++的SFML错误,找不到入口点

[英]SFML Error with C++, Entry Point Not Found

我收到错误消息“无法在动态链接库libstdc ++-6.dll中找到过程点__gxx_personality_v0。如何解决此问题?我不知道,希望能提供任何帮助。

Your compiler is using a different version of libstdc++-6.dll then the binary of SFML that you downloaded. 您的编译器使用的libstdc ++-6.dll版本与下载的SFML二进制版本不同。 What this basically means is that when SFML compiled the version of the library you downloaded they used a different version of libstdc++ then you have on your computer which will obviously cause problems most of the time. 这基本上意味着,当SFML编译您下载的库的版本时,他们使用的是libstdc ++的不同版本,那么您的计算机上显然会在大多数时间引起问题。

Here is probably the best solution to this problem. 这可能是解决此问题的最佳方法。

You will need to compile from the source. 您将需要从源代码进行编译。 You will need a few things to do this. 您将需要执行一些操作。 First go out and get CMake which is available here. 首先出去获得CMake,可在此处获得。 Then go and download the SFML 2.1 source code http://www.sfml-dev.org/download.php (Or whatever version you want). 然后去下载SFML 2.1源代码http://www.sfml-dev.org/download.php (或您想要的任何版本)。 Next to figure out how to compile from the source code you can follow this tutorial http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php . 要弄清楚如何从源代码进行编译,您可以按照本教程http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php进行操作

Once everything is compiled link to the new libraries that you created specifically for your compiler and you should be good to go. 编译完所有内容后,请链接到专门为编译器创建的新库,您应该一切顺利。

Maybe your gcc version is (very) different from what SFML library is built with? 也许您的gcc版本与构建SFML库的版本(非常)不同? The best solution is to build the source yourself, with your compiler. 最好的解决方案是使用编译器自己构建源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM