News:

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

Main Menu

Strange error when running my program

Started by igdegoo, December 28, 2017, 05:53:08 PM

Previous topic - Next topic

igdegoo


I have no idea why this pops up.
When I run in the Code::Blocks editor it runs fine, but when I run the .EXE from the file explorer I get that message.
I am using MinGW compiler.

I can post the source code if it is required.

oBFusCATed

It is either a missing dll or mismatched dll. Use dependency walker to find which of the two is...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

igdegoo

Quote from: oBFusCATed on December 28, 2017, 06:20:04 PM
It is either a missing dll or mismatched dll. Use dependency walker to find which of the two is...
What is dependency walker?

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

igdegoo


igdegoo

i still don't know know how to compile it without it requiring all these DLLs

stahta01

Quote from: igdegoo on February 22, 2018, 03:56:37 PM
i still don't know know how to compile it without it requiring all these DLLs

I suggest asking on a site the supports the compiler.
The normal way is to use static library instead of a shared/DLL library.

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]

BlueHazzard

QuoteI suggest asking on a site the supports the compiler.
Or the site that supports the library. You don't tell us what library so we can not say how to link it statically

BentL

Quote from: igdegoo on December 28, 2017, 05:53:08 PM
When I run in the Code::Blocks editor it runs fine, but when I run the .EXE from the file explorer I get that message.

The reason you get this error is because your exe-file cannot find the necessary dynamic link libraries. You either have to include these in the same folder as the exe-file, or you can specify that all libraries should be statically linked to the exe-file, so the application contains just one file:

File > Project > Build options... > Select application name > Linker settings > Other linker options > -static