User forums > General (but related to Code::Blocks)

Can't run .exe (error)

<< < (2/2)

sorinev:

--- Quote from: jens on May 07, 2011, 08:52:06 am ---The missing dll is part of TDM's MinGW install.
Make sure it is installed correctly and the dll can be found by your exe (either in the same folder or in system-path).

--- End quote ---

Is there a way around this? When moving the exe of a simple console program around to other places on my computer, or even another computer altogether (sending the program to a friend, etc.), it's kind of annoying to have to haul this .dll along with it. Is this just the nature of MinGW?

edit: Nevermind, it seems adding -static-libgcc to the linker options of the compiler fixes it.

asrockw7:

--- Quote from: sorinev on May 11, 2011, 12:33:34 am ---edit: Nevermind, it seems adding -static-libgcc to the linker options of the compiler fixes it.

--- End quote ---
It fixed it. lol thanks.

Also, the problem is the wx thing is for C++. I want to use C. But nevermind that, I'm trying to learn that now. thanks anyway. lol

Navigation

[0] Message Index

[*] Previous page

Go to full version