Sign in to follow this  
Juanxo

link problems between stl-port and SFML

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this