Author Topic: Problem to launch my exe file  (Read 3302 times)

Offline grzybek

  • Single posting newcomer
  • *
  • Posts: 2
Problem to launch my exe file
« 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

Offline qtreez

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Problem to launch my exe file
« Reply #1 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Problem to launch my exe file
« Reply #2 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.
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Problem to launch my exe file
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline grzybek

  • Single posting newcomer
  • *
  • Posts: 2
Re: Problem to launch my exe file
« Reply #4 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