SFML community forums
Help => General => Topic started by: mimipim on December 07, 2010, 10:14:06 pm
-
I was reinstal my computre and now cant setup (again) SFML with last version of code::blocks.
In build options on my project, Realese -> Linker settings i set this:
-lsfml-audio-s
-lsfml-graphics-s
-lsfml-window-s
-lsfml-system-s
I already copied files to my codeblocks install folder.
But still reciving errors.
-
have you defined SFML_DYNAMIC in the tab "Compiler Settings" ?
-
have you defined SFML_DYNAMIC in the tab "Compiler Settings" ?
No, I don't think that's right. He's linking with the static libraries not the dynamic ones.
Maybe you need to change the order the are libraries called in the linker. I saw a similar issue in another post and it was solved by moving the graphics and window library before the audio and system.
-
Thanks for your replys friends. I try this now and it's still return "undefined reference to ...".
Please anyone help.
-
Have you set your compiler search directories?
-
What version of gcc do you use? (type "mingw32-gcc -v" in a console to find out -- make sure that you do it from your Code::Blocks' MinGW/bin folder)
-
Hi to you.
The version is: "4.4.1 (TDM-2 mingw32)";
I want to tell you that now I link the libs in debuger too and when Build recive errors like:
C:\CPP\SFML\lib\libsfml-system-s.a(Platform.o):Platform.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
-
You must recompile SFML, or use the MinGW version given in the tutorial. Yours is not compatible with the one that was used to compile SFML 1.6.
-
Now work, thanks you a lot Laurent!
-
But I want to ask one more thing. Why when i built and run direct from C::B my program return message "Unable to load file pic.jpg".
If I run it from debug folder myself everything is okay.
-
You must setup the working directory in the run options of your project.
-
Thanks for all Laurent.