window = new sf::RenderWindow(sf::VideoMode(Width, Height), "DirtyCraft", sf::Style::Titlebar | sf::Style::Close, settings);
so this line is with problems for me!
||=== Build: Debug in DirtyCraft (compiler: GNU GCC Compiler) ===|
obj\Debug\Display.o||In function `ZN7Display4InitEv':|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|25|undefined reference to `_imp___ZN2sf6Window22setVerticalSyncEnabledEb'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|31|undefined reference to `_imp___ZN2sf6Window5closeEv'|
obj\Debug\Display.o||In function `ZN7Display3RunEv':|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|77|undefined reference to `_imp___ZN2sf6Window5closeEv'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|73|undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|84|undefined reference to `_imp___ZN2sf6Window7displayEv'|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|70|undefined reference to `_imp___ZNK2sf6Window6isOpenEv'|
||error: ld returned 1 exit status|
||=== Build failed: 10 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|
these are the errors! So 24 is window = new sf::RenderWindow(sf::VideoMode(Width, Height), "DirtyCraft", sf::Style::Titlebar | sf::Style::Close, settings);
and the rest are functions of the class, reffered by ->.
but if I put * to RenderWindow window = new sf::RenderWindow*(sf::VideoMode(Width, Height), "DirtyCraft", sf::Style::Titlebar | sf::Style::Close, settings);
I get less errors
||=== Build: Debug in DirtyCraft (compiler: GNU GCC Compiler) ===|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp||In function 'void Display::Init()':|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|error: new initializer expression list treated as compound expression [-fpermissive]|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|warning: right operand of comma operator has no effect [-Wunused-value]|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|warning: right operand of comma operator has no effect [-Wunused-value]|
C:\Users\George\Desktop\C++\DirtyCraft\Display.cpp|24|error: cannot convert 'sf::ContextSettings' to 'sf::RenderWindow*' in initialization|
||=== Build failed: 2 error(s), 2 warning(s) (0 minute(s), 0 second(s)) ===|
the interesting fact is that all the errors are now on 24 who is window = new...
If this is not enought to solve the problem, tell me, what is missing and I will give it