SFML community forums

Help => System => Topic started by: replaceits on September 03, 2012, 09:37:01 am

Title: [-lsfml-system-s] Having Touble Staticly Linking System..
Post by: replaceits on September 03, 2012, 09:37:01 am
Now i have literally spent hours trying to figure this problem out on my own.
I'm using SFML 1.6 with Code::Blocks 10.05.
When trying to staticly link librarys I can link them all staticly except system?

My linker is...
-lsfml-graphics-s
-lsfml-window-s
-lsfml-audio-s
-lsfml-system-s
-static-libgcc
and my code starts with..
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/Audio.hpp>
#include <SFML/System.hpp>

All the librarys are linked staticly, however when running the program it says sfml-system.dll is missing, no other dlls. Simply adding the dll to the executables directory fixes the problem but I'm wondering if there is a way to actually link system staticly? And yes I have googled and researched and tried/tested everything i can think of but no luck, any help would be greatly appreciated. Thank you!
(Also, yes, i have pathing fully configured and my search directorys)
Title: Re: [-lsfml-system-s] Having Touble Staticly Linking System..
Post by: Laurent on September 03, 2012, 10:09:11 am
Can you upload your project file?
Title: Re: [-lsfml-system-s] Having Touble Staticly Linking System..
Post by: replaceits on September 03, 2012, 03:53:18 pm
Hmm it seems my project miraculously fixed itself, i removed a commented line and it worked, odd..
Thank you though.(:
Title: Re: [-lsfml-system-s] Having Touble Staticly Linking System..
Post by: replaceits on September 03, 2012, 03:57:54 pm
I'm guessing Code::Blocks wasn't going to recompile with the new linker settings unless i changed the code around, feel like a noob already 8) lol