Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: grzybek on December 02, 2015, 12:47:03 pm

Title: Problem to launch my exe file
Post by: grzybek on December 02, 2015, 12:47:03 pm
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
Title: Re: Problem to launch my exe file
Post by: qtreez on December 02, 2015, 08:34:18 pm
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.
Title: Re: Problem to launch my exe file
Post by: oBFusCATed on December 03, 2015, 04:47:21 am
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.
Title: Re: Problem to launch my exe file
Post by: MortenMacFly on December 03, 2015, 01:03:47 pm
Note that you can also modify the PATH environment variable to your needs per project if you use the envvar plugin.
Title: Re: Problem to launch my exe file
Post by: grzybek on December 03, 2015, 02:56:08 pm
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