SFML community forums

Help => General => Topic started by: Vreejack on February 22, 2013, 05:26:56 pm

Title: New Install. Will not link Hello World
Post by: Vreejack on February 22, 2013, 05:26:56 pm
Trying the codeblocks tutorial for SFML 2.0

Compiles just fine.  Odd functions not linking. Here's what I am doing:
Setting the SFML include and lib folders globally.
For the project, adding sfml-graphics-s-d, sfml-window-s-d, and sfml-system-s-d to the debug build (and the non-debug items to the release build), defining  SFML_STATIC for the whole project.

Everything seems listed okay in the log, but I am getting unresolved references to various "unwind" and "personality" items. Something to do with exceptions? I just installed these, so there should not be anything strange set yet.

Quote
g++.exe -Wall -fexceptions -DSFML_STATIC  -g    -IC:\dev\SFML\include  -c D:\Steamwire\SFMLTest\main.cpp -o obj\Debug\main.o
g++.exe -LC:\dev\SFML\lib  -o bin\Debug\SFMLTest.exe obj\Debug\main.o    -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d
C:\dev\SFML\lib/libsfml-graphics-s-d.a(CircleShape.cpp.obj): In function `CircleShape':
D:/developpement/sfml-master/src/SFML/Graphics/CircleShape.cpp:35: undefined reference to `__gxx_personality_sj0'
D:/developpement/sfml-master/src/SFML/Graphics/CircleShape.cpp:35: undefined reference to `_Unwind_SjLj_Register'
D:/developpement/sfml-master/src/SFML/Graphics/CircleShape.cpp:40: undefined reference to `_Unwind_SjLj_Resume'
D:/developpement/sfml-master/src/SFML/Graphics/CircleShape.cpp:40: undefined reference to `_Unwind_SjLj_Unregister'
etc...





Title: Re: New Install. Will not link Hello World
Post by: Laurent on February 22, 2013, 05:47:48 pm
Your version of gcc doesn't match the one that you downloaded SFML for. You should recompile SFML.
Title: Re: New Install. Will not link Hello World
Post by: Vreejack on February 22, 2013, 05:55:57 pm
Was just about to ask that.  Thanks!