Static linking libraries

closed account (1yvXoG1T)
I'm trying to remove the dependency on libgcc_s_dw2-1.dll and have been trying to static link libgcc to do so.
I'm using Code::Blocks using the MinGW compiler and under my Linker Settings (in both global and project specific) I have -static-libgcc among my other options. But adding this adds nothing to my filesize and it still claims the dependency. Any idea how I can fix this?
I also use Code::Blocks 10.05 but not having problem libgcc_s_dw2-1.dll. Are you using third party libraries? I use gcc version 4.4.1 (TDM-2 mingw32)

[edit]
By the way, what are you writing?
Last edited on
closed account (1yvXoG1T)
I'm using the same version of Code::Blocks and gcc. I'm also using SFML 1.6.

It's a Breakout-type game. I'll post it up here once it's done :D

[edit]
Forgot to include the version of SFML.
Last edited on
Sorry you can't, SFML depends on libgcc_s_dw2-1.dll. But I was able to surpass this before when I compiled SFML 1.6 from source using Code::Blocks.
closed account (1yvXoG1T)
How would you go about doing that? This is the first time I've tried to make a program run on something other than my own PC...
How would you go about doing that?
What do you mean about that? Of course you have to download the SFML source code then compile..

This is the first time I've tried to make a program run on something other than my own PC...
Why, can't you run it? Just copy the libgcc_s_dw2-1.dll to make your life easier : )
closed account (1yvXoG1T)
What do you mean about that? Of course you have to download the SFML source code then compile..

Oh wow, I knew that. Sleep deprivation does the worst things to my brain.

Why, can't you run it? Just copy the libgcc_s_dw2-1.dll to make your life easier : )

My friend claimed he did that but it still wasn't working. I sent him the whole thing bundled with it and it's working fine. Thanks for your help :D
Good for you then. You might also try downloading tools like dependency walker. http://www.dependencywalker.com/
closed account (1yvXoG1T)
This is exactly what I need. Thanks alot :D
Topic archived. No new replies allowed.