1
C / static compile errors
« on: December 06, 2009, 05:30:16 pm »
Makes sense. Thanks for the quick reply.
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.
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0x1e): undefined reference to `__gxx_personality_sj0'
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0x34): undefined reference to `_Unwind_SjLj_Register'
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0x59): undefined reference to `sf::Clock::Clock()'
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0x64): undefined reference to `_Unwind_SjLj_Unregister'
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0x9a): undefined reference to `_Unwind_SjLj_Resume'
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0xb5): undefined reference to `sf::Clock::GetElapsedTime() const'
D:/MinGW/lib/libcsfml-system-s.a(Clock.o):Clock.cpp:(.text+0xc5): undefined reference to `sf::Clock::Reset()'
D:/MinGW/lib/libcsfml-system-s.a(Sleep.o):Sleep.cpp:(.text+0x5): undefined reference to `sf::Sleep(float)'
#include <stdio.h>
#include <stdlib.h>
#include <SFML/System.h>
/*
*
*/
int main()
{
sfClock* clock = sfClock_Create();
while (sfClock_GetTime(clock) < 5.f)
{
printf("time is %f\n", sfClock_GetTime(clock));
sfSleep(0.5f);
}
sfClock_Destroy(clock);
return(0);
}