1
General / Re: Code::Blocks: Unable to compile with SFML 2.5.1
« on: February 10, 2020, 07:23:31 pm »
Update 2!
Adding following line to the code seemed to fix the said problems.
Also now I get even more problems:
However trying to import the Texture.hpp doesn't need to solve that (and would be weird if it would).
Adding following line to the code seemed to fix the said problems.
Quote
#include <SFML/Window/Event.hpp>This doesn't really make sense as in the imported header file I have already imported SFML/Window
Also now I get even more problems:
Quote
||=== Build: Release in Rogue (compiler: GNU GCC Compiler) ===|
obj\rge_main.o:rge_main.cpp|| undefined reference to `sf::Texture::loadFromFile(std::string const&, sf::Rect<int> const&)'|
obj\rge_main.o:rge_main.cpp|| undefined reference to `sf::Image::loadFromFile(std::string const&)'|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
However trying to import the Texture.hpp doesn't need to solve that (and would be weird if it would).