News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Project runs fine via F9, but crashes outside?

Started by lmsmi1, March 04, 2013, 08:48:44 PM

Previous topic - Next topic

lmsmi1

I've built a custom DLL in CodeBlocks 12.11 with MinGW, and have linked my executable to it. When I run the executable via F9 in Code::Blocks, it does everything I want it to do. However when I double-click it outside of Code::Blocks, it opens, but immediately crashes. Is this an issue with MinGW, Code::Blocks, or what? Are there any fixes?

Note: The DLL is in the same folder of the executable that uses the functions inside it.

stahta01

Quote from: lmsmi1 on March 04, 2013, 08:48:44 PM
Is this an issue with MinGW, Code::Blocks, or what? Are there any fixes?

Did you copy the DLLs needed by your project into the same folder as the exe?

If not, you need to do so; or at least make sure the DLLs are in the system PATH.

NOTE: It likely is missing the mingw DLL mingwm10.dll and maybe some other DLLs.

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]