Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Missing libraries  (Read 1580 times)

0 Members and 1 Guest are viewing this topic.

jerryd

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Missing libraries
« on: May 06, 2017, 11:32:28 pm »
SFML forum,
 I have been using SFML-2.4.0 with CodeLite and Code::Blocks for some
 time and am now trying to set up MS Visual C++ to use it.  The problem
 is MSVC wants me to include "sfml-graphics.lib" and other similar
 libraries but I don't have those.  Where or how do I get them?

Jerryd

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Missing libraries
« Reply #1 on: May 07, 2017, 01:22:27 pm »
If you're compiling SFML yourself from source, it needs to be recompiled with the compiler you're using it with - MSVC.

If you use pre-built versions of SFML, download the Visual C++ version from SFML's download page.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

jerryd

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Missing libraries
« Reply #2 on: May 08, 2017, 01:34:30 am »
Hapax,
 Thanks for the reply.

 I am not familiar with CMAKE so I read all about it and I still
 don't understand what it will do for my problem.  It isn't a
 compiler so will it make the files I'm missing?

 I don't have the full MS Visual Studio just MS Visual C++ 2010.

 Any suggestions?

Jerryd

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10820
    • View Profile
    • development blog
    • Email
Re: Missing libraries
« Reply #3 on: May 08, 2017, 07:39:15 am »
CMake generates make files and project files for various compiler toolchains and IDEs. By using CMake you can generate a VS 2010 project file which allows you to build SFML libs for VS 2010.

If you're ​using VS 2010 Express, I highly recommend you update to VS 2017 Community.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/