Hello members!
I'm still new here and now trying to use SFML with Code::Blocks. But I have a problem: when I try to runnig the sample code (from here:
https://www.sfml-dev.org/tutorials/2.5/start-cb.php ), I get the following error message:
||=== Build: Debug in SFMLpelda (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `main':|
D:\progsetup\codeblocks-17.12mingw-nosetup\sajatok\SFMLpelda\main.cpp|5|undefined reference to `sf::String::String(char const*, std::locale const&)'|
D:\progsetup\codeblocks-17.12mingw-nosetup\sajatok\SFMLpelda\main.cpp|5|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
D:\progsetup\codeblocks-17.12mingw-nosetup\sajatok\SFMLpelda\main.cpp|9|undefined reference to `sf::Window::isOpen() const'|
D:\progsetup\codeblocks-17.12mingw-nosetup\sajatok\SFMLpelda\main.cpp|12|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
D:\progsetup\codeblocks-17.12mingw-nosetup\sajatok\SFMLpelda\main.cpp|15|undefined reference to `sf::Window::close()'|
D:\progsetup\codeblocks-17.12mingw-nosetup\sajatok\SFMLpelda\main.cpp|20|undefined reference to `sf::Window::display()'|
||error: ld returned 1 exit status|
||=== Build failed: 7 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|I don't know what is wrong; maybe I did a mistake at the installing of SFML? For example, when I added the libraries to Linker settings/Link libraries, I didn't find
sfml-graphics, but instead there are
libsfml-graphics.a, and I can't rewrite, because C::B don't let it. Or rather, I have used the "Edit library" option, and I rewrite the name of the file, but the two file is not the same as for names.
Somebody can help me?