Hallo!
Nach einiger Zeit habe ich nochmal alles durch kompiliert in meiner Engine und es gibt wieder Probleme im Framework. Er gibt mir den Fehler LNK2019.
Also ein nach gebauter, vom Inhalt genau gleicher (nur Namen geändert) Quelltext:
Framework.cpp:
|
C/C++ Quellcode
|
1
2
3
4
5
6
7
8
9
|
#include "Framework_Header.hpp"
bool lwtFramework::Events::a(sf::Event &Event, sf::Window &App)
{
if(App.GetInput().IsMouseButtonDown(sf::Mouse::Left))
return true;
else
return false;
}
|
Framework_Header.hpp:
|
C/C++ Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "Framework.hpp" //Framework
#include <SFML\System.hpp> //SFML-System
#include <SFML\Window.hpp> //SFML-Window
namespace lwtFramework
{
class DLL_FRAMEWORK_API Events
{
public:
Events();
bool a(sf::Event &Event, sf::Window &App);
private:
sf::Event *Event;
sf::Window *App;
};
}
|
Framework.hpp:
|
C/C++ Quellcode
|
1
2
3
4
5
6
7
8
9
10
|
#ifndef FRAMEWORK_HPP //Start des
#define FRAMEWORK_HPP //"Waechters".
#if _USRDLL //Importieren und Exportieren der DLL
#define DLL_FRAMEWORK_API _declspec(dllexport) //Schluesselwort
#else
#define DLL_FRAMEWORK_API _declspec(dllimport) //Schluesselwort
#endif
#endif
|
Habe alle Linker, alle Dateipfade und Dateipfadangaben nochmal überprüft, aber nichts ändert sich.
Die 2 Zeilen Fehlerkonsole:
|
Bash
|
1
2
|
1>Framework_Datei.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __thiscall sf::Input::IsMouseButtonDown(enum sf::Mouse::Button)const " (?IsMouseButtonDown@Input@sf@@QBE_NW4Button@Mouse@2@@Z)" in Funktion ""public: bool __thiscall lwtFramework::Events::a(class sf::Event &,class sf::Window &)" (?a@Events@lwtFramework@@QAE_NAAVEvent@sf@@AAVWindow@4@@Z)".
1>Framework_Datei.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class sf::Input const & __thiscall sf::Window::GetInput(void)const " (?GetInput@Window@sf@@QBEABVInput@2@XZ)" in Funktion ""public: bool __thiscall lwtFramework::Events::a(class sf::Event &,class sf::Window &)" (?a@Events@lwtFramework@@QAE_NAAVEvent@sf@@AAVWindow@4@@Z)".
|
MfG
Check