User forums > Help

Strange error when running my program

<< < (2/2)

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

--- End quote ---

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.

BlueHazzard:

--- Quote ---I suggest asking on a site the supports the compiler.
--- End quote ---
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.
--- End quote ---

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

Navigation

[0] Message Index

[*] Previous page

Go to full version