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

Author Topic: Setting up an SFML with Box2D in Visual Studio (2019).  (Read 2055 times)

0 Members and 1 Guest are viewing this topic.

Riser

  • Newbie
  • *
  • Posts: 33
    • View Profile
Setting up an SFML with Box2D in Visual Studio (2019).
« on: November 16, 2020, 12:33:35 pm »
I already had an SFML template project that I've been using for a while, and now I want to add Box2D to it, but after I thought I did everything correctly, I get external errors whenever I write anything using the Box2D library, I think the problem might be related to the additional dependencies, all the tutorials I found were outdated,can anyone walk me through the process of setting up the latest version of Box2D with SFML in Visual Studio (2019)?
« Last Edit: November 16, 2020, 01:00:01 pm by Riser »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Setting up an SFML with Box2D in Visual Studio (2019).
« Reply #1 on: January 03, 2021, 02:45:53 pm »
You may need to provide some more information on what the actual problem is.

To link a library the steps are pretty much always the same:

- Tell the compiler where to find the header files
- Tell the linker where the library files are located
- Tell the linker which libraries to link

Ensure that it's correctly set for the wanted debug/release x86/x64 combination.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/