News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Problem to launch my exe file

Started by grzybek, December 02, 2015, 12:47:03 PM

Previous topic - Next topic

grzybek

Hi,

I use wx GUI platform, I can compile and build my application.
From Code::Block enviroment it works perfectly but when I try to run
exe file I have error not to find  wxmsw28u_gcc_custom.dll file on my PC.

Anybody can help me how to fix it ? Of course I have this file on my system but maybe in incorect place
or some settings missing.

Thanks in advance.

Regards,
grzybek

qtreez

How is your exe runned?
If by IDE find that DLL and paste it to project's folder.
If by dbl-click, paste it to folder where your exe exist.
DLL can be found in wxwidgets package.

oBFusCATed

C::B automatically fixes the PATH variable for you.
It does this by adding all paths you've enterned in the build optiosn -> search -> linker to the variable.
So you have to do the same thing in the console, copy the dll file next to the exe file or write a manifest.
(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!]

MortenMacFly

Note that you can also modify the PATH environment variable to your needs per project if you use the envvar plugin.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

grzybek

Hi,

Thanks a lot !

Copy dll file to exe location solved the problem.
So moving this program to another PC or create install package needs this file ?


Regards,
grzybek