Jump to content
  • Advertisement
Sign in to follow this  
Juanxo

link problems between stl-port and SFML

This topic is 3043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all: I'm trying to port some code from SDL to SFML, and I'm getting some problems with the linker. The code I'm trying to port is a collada loader (with Assimp). If I include and link only Assimp with SFML, I get a runtime exception (Access violation writing location 0xcdcdcdcd). I think this is because Assimp use stlport internally. But in the other hand, when I also include and link stlport, I get some linker errors:
error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::Create(class sf::VideoMode,class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)"
and
error LNK2019: unresolved external symbol "public: bool __thiscall sf::Image::LoadFromFile(class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > const &)" 
I think this is because SFML can't use stlport containers, but I can't figure out how to fix this issue. If someone knows how to solve this problem, please tell me because I'm going crazy. Note:While I was using SDL, I didn't have any issue (I think this is because SDL is more C oriented API) Thx

Share this post


Link to post
Share on other sites
Advertisement
Simplest solution? Don't use stlport.

Any decent compiler (MSVC 7+, GCC 4+, etc.) comes with a full standard library implementation - use that instead.

Share this post


Link to post
Share on other sites
Thx both.

I haven't used dynamic linking, so I think it isn't necessary SFML_DYNAMIC. I'll go with the standard library of the compiler, but I don't know what is causing this problem

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!