SFML loadFromFile undefined reference

前端 未结 1 379
悲&欢浪女
悲&欢浪女 2021-01-23 00:45

I\'m learning to use SFML with the idea of making a small game, so far I\'ve created a window and messed about with it\'s settings, and set up a draw loop and event handler.

相关标签:
1条回答
  • 2021-01-23 01:27

    You're using SFML libraries which were compiled with a different runtime or a different runtime ABI than you link your application against.

    If your SFML libraries weren't compiled with the same compiler that you have, then you need to rebuild.

    If you have set any special flags on your application (e.g. different ABI, C++14, etc.) you'll have to rebuild SFML with the same flags as well or remove them from your project.

    Also it only happens sometimes because it doesn't affect the whole runtime libraries but parts like std::string which get used when calling the loadFromFile function.

    0 讨论(0)
提交回复
热议问题