SFML community forums

Help => General => Topic started by: ERROR on April 25, 2015, 05:03:32 pm

Title: own dll using SFML results in linker error
Post by: 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
Title: Re: own dll using SFML results in linker error
Post by: eXpl0it3r on April 25, 2015, 05:42:20 pm
The error says it all. VS can't find the mentioned header file, see here (https://msdn.microsoft.com/de-de/library/et4zwx34.aspx) for further explanations.