It's not the order, it was correct. Have you defined SFML_STATIC?
Can you post the exact linker errors?
Yeah Sure. Ill also post the code im running just to be sure.
Here is the code:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(500,500),"Sfml Works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while(window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if(event.type == sf::Event::Closed)
window.close();
}
}
window.clear();
window.draw(shape);
window.display();
}
Errors:
obj\Debug\main.o||In function `main':|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|7|undefined reference to `sf::String::String(char const*, std::locale const&)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|7|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|7|undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|8|undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|7|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|9|undefined reference to `sf::Color::Green'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|9|undefined reference to `sf::Shape::setFillColor(sf::Color const&)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|19|undefined reference to `sf::Window::close()'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|15|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|11|undefined reference to `sf::Window::isOpen() const'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|22|undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|22|undefined reference to `sf::RenderTarget::clear(sf::Color const&)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|23|undefined reference to `sf::RenderStates::Default'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|23|undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|24|undefined reference to `sf::Window::display()'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|24|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\Users\Owner\Documents\New folder\SFML2Template\main.cpp|24|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o||In function `~CircleShape':|
C:\Users\Owner\Documents\New folder\SFML2Template\..\..\..\Desktop\SFML-2.0\include\SFML\Graphics\CircleShape.hpp|42|undefined reference to `vtable for sf::CircleShape'|
C:\Users\Owner\Documents\New folder\SFML2Template\..\..\..\Desktop\SFML-2.0\include\SFML\Graphics\CircleShape.hpp|42|undefined reference to `vtable for sf::CircleShape'|
C:\Users\Owner\Documents\New folder\SFML2Template\..\..\..\Desktop\SFML-2.0\include\SFML\Graphics\CircleShape.hpp|42|undefined reference to `sf::Shape::~Shape()'|
||=== Build finished: 20 errors, 0 warnings ===|
I'm no beginner to C++, but I've just always had problems with libs for some reason and im almost positive that it's something fairly simple that I probably overlooked. And Yes I did define SFML_STATIC. I really appreciate you having the patience to help me