Hi there, I'm new to SFML and to the forums, this is my first post.
It's been 2 days by now since I started to try getting SFML 2.1 code from tutorial to compile.
So, what I am using:
- SFML 2.1
- CodeBlocks 12.11 and MinGW (same installation, files in MinGW's bin folder including libgcc_s_dw2-1.dll and libgcc_s_sjlj-1.dll)
- Windows 7
(I'm sticking with CodeBlocks, but already tried Visual Studio and NetBeans with no success.)
I've followed the tutorial, downloading the package SFML-2.1-windows-gcc-4.7-tdm-64bits (and already tried the others with no success, ofc)
My folder is SFML-2.1 in C: drive, which I've linked accordingly.
I've done the linkages for both debug and release types, using static libraries.
"include" and "lib" linkages, sfml-graphics-s, SFML_STATIC #define etc. Everything done as the tutorial told me, but I'm still getting these errors (the code I'm using is the one from the tutorial):
obj\Debug\main.o||In function `main':|
C:\Users\NEUSA\Desktop\teste\main.cpp|5|undefined reference to `sf::String::String(char const*, std::locale const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|5|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|5|undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|6|undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|7|undefined reference to `sf::Color::Green'|
C:\Users\NEUSA\Desktop\teste\main.cpp|7|undefined reference to `sf::Shape::setFillColor(sf::Color const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|15|undefined reference to `sf::Window::close()'|
C:\Users\NEUSA\Desktop\teste\main.cpp|12|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|18|undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|18|undefined reference to `sf::RenderTarget::clear(sf::Color const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|19|undefined reference to `sf::RenderStates::Default'|
C:\Users\NEUSA\Desktop\teste\main.cpp|19|undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|20|undefined reference to `sf::Window::display()'|
C:\Users\NEUSA\Desktop\teste\main.cpp|9|undefined reference to `sf::Window::isOpen() const'|
C:\Users\NEUSA\Desktop\teste\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\Users\NEUSA\Desktop\teste\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev':|
c:\sfml-2.1\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
c:\sfml-2.1\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
c:\sfml-2.1\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `sf::Shape::~Shape()'|
||=== Build finished: 19 errors, 0 warnings (0 minutes, 1 seconds) ===|
Help, please?
P.s. 1: Please, don't be rude. It's not like I didn't read the tutorials. I must have read them a thousand times by now, and I'm trying to get this to compile since yesterday.
P.s. 2: I've tried searching for similar problems on the forum, but I'm getting a Database Error.