1
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 08:16:52 pm »
It worked! Problem resolved. Thanks binary1248 and Gobbles!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
-------------- Clean: Debug in teste (compiler: GNU GCC Compiler)---------------
Cleaned "teste - Debug"
-------------- Build: Debug in teste (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -DSFML_STATIC -std=c++11 -std=c++0x -Ic:\sfml-2.1\include -c C:\Users\NEUSA\Desktop\teste\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -Lc:\sfml-2.1\lib -o bin\Debug\teste.exe obj\Debug\main.o -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d
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()'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 6 seconds)
19 errors, 0 warnings (0 minutes, 6 seconds)
-------------- Build: Debug in teste (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Lc:\sfml-2.1\lib -o bin\Debug\teste.exe obj\Debug\main.o -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d
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()'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
19 errors, 0 warnings (0 minutes, 0 seconds)