News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Can't run .exe (error)

Started by asrockw7, May 06, 2011, 07:33:16 PM

Previous topic - Next topic

asrockw7

When I try to run the .exe an error message pops up looking for a .dll file. Atm, what I do is code stuff using Code Blocks and move it to VS when it's done so I can start using it which is pretty stupid since it defeats the reason why I started using Code Blocks.

Also, just to save time and not spam, is it possible for me to put a gui on my programs?

EDIT: This is my error: The program can't start because libgcc_s_dw2-1.dll is missing from your computer. Try reinstalling the program to fix this problem.

It's when I try to run the program exe from the Code Blocks directory. I can't move the exe around and use it on other computers because it won't execute.

stahta01

I have no idea if you know can learn to create an GUI.
You really should ask your programming questions on a programming site.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

asrockw7

nono I didn't mean it like that. I was thinking if Code Blocks had some sort of feature where it can integrate a GUI or something, a plugin of some sort. But yeah, nevermind that. lol I'm still asking about this error.

virtuosonic

language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

Jenna

Quote from: virtuosonic on May 07, 2011, 08:47:37 AM
yes, it has wxsmith, but it requires wxWidgets

One of the great advantages of wxSmith with wxWidgets is, that it is possible to create cross-platform guis with it.

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).

sorinev

#5
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).

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.
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