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

Author Topic: How to add to project engine.dll which uses SFML (Visual Studio 2015)  (Read 789 times)

0 Members and 1 Guest are viewing this topic.

Putarda

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
I'm not an profesional C++ programmer just to be clear. I made my own game engine and I compiled it as Win32 DLL, and engine is using SFML. When I added engine to my GameTest project, I got error "cannot open source file SFML\Graphics.hpp...". Tried making test engine without sfml, and it worked fine. Idk how to use dll which uses another dll, and there is no tutorial on the internet.

fallahn

  • Sr. Member
  • ****
  • Posts: 463
  • Buns.
    • View Profile
    • Trederia
Re: How to add to project engine.dll which uses SFML (Visual Studio 2015)
« Reply #1 on: December 09, 2016, 10:44:12 pm »
Unless the dll you made was built by statically linking SFML (so that the SFML parts are contained within it) you link your project to SFML as any other SFML project, as well as linking to your game engine.