1
General / Re: Link error due to object files (I think)
« on: April 24, 2013, 05:46:55 pm »
Ah, sweet. Thank you very much
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.
g++ -I../../include main.cpp -o test.exe -DSFML_STATIC -L../../lib/sfml -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
g++ -I../../include -c main.cpp -o main.o
g++ -I../../include main.o -o test.exe -DSFML_STATIC -L../../lib/sfml -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
I get link errors: Undefined reference to sf::RenderWindowWhy couldn't you have said that in your opening question?Just because I figured the question had been asked a lot. Anyway...
void update(int value) {
if (camera.moving())
{
camera.moveX();
camera.moveZ();
camera.moveY();
glutPostRedisplay(); //Tell GLUT that the scene has changed
}
//Tell GLUT to call update again in 25 milliseconds
glutTimerFunc(25, update, 0);
}
bool Running = true;
while (Running)
{
App.Display();
}