Jump to content
  • Advertisement
Sign in to follow this  
afflicto

C++ & SFML?

This topic is 2103 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

I'm new to C++ and I wanted to try SFML.

 

So I downloaded visual studio 2012 and the SFML 2.1 zip file. Extracted it to C:/sfml2.1

 

And I followed the instructions. I also disabled the 'Precompiled header' option in  'configuration -> C/C++ -> Precompiled headers' as suggested by another thread here on gamedev.

 

But I'm getting this error:

The program can't start because sfml-system-d-2.dll is missing from your computer. Try reinstall...

Any ideas?

 

Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement

You are welcome. Glad I could help. I think there is mention somewhere on the site about the DLLs.

By the way, from the Visual Studio tutorial page:

 

 

Now compile the project, and if you linked to the dynamic version of SFML, don't forget to copy the SFML DLLs (they are in <sfml-install-path/bin>) to the directory where your compiled executable is. Then run it, and if everything is ok you should see this:
Edited by Dragonsoulj

Share this post


Link to post
Share on other sites

Or just add the bin directory of SFML to the path, then you dont need to copy the dll files every time you make a new project. Just remember users of your program need them.

Share this post


Link to post
Share on other sites

You can get SFML liked statically to remove the need for dll. Static linking reduces the final size of the program, but possibly makes updates bigger.

I use static linking for convenience.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!