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

Author Topic: own dll using SFML results in linker error  (Read 1082 times)

0 Members and 1 Guest are viewing this topic.

ERROR

  • Newbie
  • *
  • Posts: 7
    • View Profile
own dll using SFML results in linker error
« on: April 25, 2015, 05:03:32 pm »
Hello,

I have used SFML in several projects before. But in my current project I want to create a new dll which also includes SFML. Before I did that I tried everything without SFML(creating own dll and using it in another projekt) and that worked fine. I can also compile my dll itself without any errors. But when I try to compile the project, which uses both, SFML and my own dll(reminder: dll also uses SFML) I get this error:

"Fehler   7   error C1083: Datei (Include) kann nicht geöffnet werden: "SFML\Graphics.hpp": No such file or directory"
(Translates into something like: "Error  7   error C1083: File (Include) can not be opened: "SFML\Graphics.hpp": No such file or directory")

And this intellisense error:
"IntelliSense: Die Datei "Quelle" kann nicht geöffnet werden: "SFML\Graphics.hpp"."
(Translates into something like: "IntelliSense: The file "source" can not be openend: "SFML\Graphics.hpp".")


It also sais, that these errors occur in files of my own dll. But like I said I can compile the dll itself without problems.

I assume that I link SFML correctly because I can compile the dll and I have linked it correctly in the last couple of years.


Some data:
using Windows 8.1, VC++ (Visual Studio 2013 Professional Update 4), linking SFML dynamicly into both my dll and my project using the dll, both projects are in one solution

I want to thank anybody who tries to help me :) And please just ask if you need any more information.

ERROR

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: own dll using SFML results in linker error
« Reply #1 on: April 25, 2015, 05:42:20 pm »
The error says it all. VS can't find the mentioned header file, see here for further explanations.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/