1
General / Code::Blocks-Need help with dependencies SOLVED
« on: April 30, 2015, 04:28:54 am »
Im using SFML 2.2 and Code;;Blocks 13.12.
Windows 7
Thats my error log.
I know its with the dependencies but I really need this explained. I know I'm supposed to have things like winmm but I can't find it, and I don't understand the whole ordering ordeal.
Edit - After looking around, I found that I don't even have the dependencies I need. I'm so lost its not even funny and yes I have followed the tutorial 1:1
Windows 7
||=== Build: Debug in Pang (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `main':|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::String::String(char const*, std::locale const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|6|undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'|
C:\CodeBlocks\Projects\Pang\main.cpp|7|undefined reference to `sf::Color::Green'|
C:\CodeBlocks\Projects\Pang\main.cpp|7|undefined reference to `sf::Shape::setFillColor(sf::Color const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|15|undefined reference to `sf::Window::close()'|
C:\CodeBlocks\Projects\Pang\main.cpp|12|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|18|undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
C:\CodeBlocks\Projects\Pang\main.cpp|18|undefined reference to `sf::RenderTarget::clear(sf::Color const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|19|undefined reference to `sf::RenderStates::Default'|
C:\CodeBlocks\Projects\Pang\main.cpp|19|undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|20|undefined reference to `sf::Window::display()'|
C:\CodeBlocks\Projects\Pang\main.cpp|9|undefined reference to `sf::Window::isOpen() const'|
C:\CodeBlocks\Projects\Pang\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\CodeBlocks\Projects\Pang\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev':|
C:\CodeBlocks\Projects\Pang\SFML-2.2\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
C:\CodeBlocks\Projects\Pang\SFML-2.2\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
C:\CodeBlocks\Projects\Pang\SFML-2.2\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `sf::Shape::~Shape()'|
||=== Build failed: 20 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
obj\Debug\main.o||In function `main':|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::String::String(char const*, std::locale const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|6|undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'|
C:\CodeBlocks\Projects\Pang\main.cpp|7|undefined reference to `sf::Color::Green'|
C:\CodeBlocks\Projects\Pang\main.cpp|7|undefined reference to `sf::Shape::setFillColor(sf::Color const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|15|undefined reference to `sf::Window::close()'|
C:\CodeBlocks\Projects\Pang\main.cpp|12|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|18|undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
C:\CodeBlocks\Projects\Pang\main.cpp|18|undefined reference to `sf::RenderTarget::clear(sf::Color const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|19|undefined reference to `sf::RenderStates::Default'|
C:\CodeBlocks\Projects\Pang\main.cpp|19|undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'|
C:\CodeBlocks\Projects\Pang\main.cpp|20|undefined reference to `sf::Window::display()'|
C:\CodeBlocks\Projects\Pang\main.cpp|9|undefined reference to `sf::Window::isOpen() const'|
C:\CodeBlocks\Projects\Pang\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\CodeBlocks\Projects\Pang\main.cpp|5|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\CodeBlocks\Projects\Pang\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev':|
C:\CodeBlocks\Projects\Pang\SFML-2.2\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
C:\CodeBlocks\Projects\Pang\SFML-2.2\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
C:\CodeBlocks\Projects\Pang\SFML-2.2\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `sf::Shape::~Shape()'|
||=== Build failed: 20 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Thats my error log.
I know its with the dependencies but I really need this explained. I know I'm supposed to have things like winmm but I can't find it, and I don't understand the whole ordering ordeal.
Edit - After looking around, I found that I don't even have the dependencies I need. I'm so lost its not even funny and yes I have followed the tutorial 1:1