The error:
-------------- Build: Release in quickie ---------------
Linking console executable: bin\Release\quickie.exe
d:/gcc4-4/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: d:/gcc4-4/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libsfml-window-s-d.a(dmms00244.o): illegal symbol index 419430452 in relocs
collect2: ld returned 1 exit status
Full source:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <iostream>
using namespace std;
int main()
{
/*sf::Image Image;
sf::Sprite Sprite;
if (!Image.LoadFromFile("sprite.png"))
{
// Error...
}
Sprite.SetImage(Image);*/
cout << "Hello world!" << endl;
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Window");
bool Running = true;
while (App.IsOpened())
{
sf::Event Event;
while (App.GetEvent(Event))
{
// Process event
// Window closed
if (Event.Type == sf::Event::Closed)
App.Close();
// Escape key pressed
if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
App.Close();
}
App.Clear();
//App.Draw(Sprite);
App.Display();
}
App.Close();
return 0;
}
If I replace "sf::RenderWindow" with "sf::Window" (and the renderwindow-specific app.clear) it compiles happily.
Notably, I'm using Windows and statically linking.[/code]