#include <SFML/window.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "My window");
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
}
return 0;
}
It gives these error i dont know what to do and i have installed sfml for the first time.
||=== xxx, Debug ===|
obj\Debug\main.o||In function `main':|
C:\Users\Umer\Desktop\Projects Plus Plus\xxx\main.cpp|4|undefined reference to `__gxx_personality_sj0'|
C:\Users\Umer\Desktop\Projects Plus Plus\xxx\main.cpp|4|undefined reference to `_Unwind_SjLj_Register'|
C:\Users\Umer\Desktop\Projects Plus Plus\xxx\main.cpp|5|undefined reference to `_Unwind_SjLj_Resume'|
C:\Users\Umer\Desktop\Projects Plus Plus\xxx\main.cpp|20|undefined reference to `_Unwind_SjLj_Unregister'|
C:\Users\Umer\Desktop\Projects Plus Plus\xxx\main.cpp|20|undefined reference to `_Unwind_SjLj_Resume'|
||=== Build finished: 5 errors, 0 warnings (0 minutes, 1 seconds) ===|

New Topic/Question
Reply



MultiQuote







|