Author Topic: wxWidget issue (wxmsw28ud_gcc.dll related)  (Read 8725 times)

JoeDaStudd

  • Guest
wxWidget issue (wxmsw28ud_gcc.dll related)
« on: September 19, 2008, 01:35:30 pm »
Hi all,

I've just installed the wx pack on my pc (Windows XP) and created a few programs using code::blocks.
They all work when I run them from within code::blocks, but when I try to run the .exe generated (both the debug and release ones) I get the following error;

This application has failed to start  because wxmsw28ud_gcc.dll was not found. Re-installing the application may fix this problem.

I'm lost on how to fix this as I'm just starting out with both Code::Blocks and wxwidgets.

PS I think this may have something to do with it.
When I re-compile the program I get a few warnings saying;
/wx pch.h/Debug wx pch h gvh;: created using different flags.

Thanks for any help in advance,

Joe

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #1 on: September 19, 2008, 01:47:25 pm »
It's not a C::B problem, but a problem with to less knowledge of your OS.

Make sure the dll's you need are in the searchpath or in the same directory as your applications executable, or they can not be found.

JoeDaStudd

  • Guest
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #2 on: September 19, 2008, 04:06:18 pm »
Out of curiosity why does it work when code::blocks runs the the program?
The search directory for the compiler/linker and resource compiler point to the folder containing the .dll in question and I still get the issue.
What do I need to change to get this to run from the .exe?
« Last Edit: September 19, 2008, 04:16:39 pm by JoeDaStudd »

Offline alb_cb_moon

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #3 on: September 19, 2008, 08:54:42 pm »
I had the same problem, the soluton is add the directory of dll's
(in my case: C:\project\wxWidgets-2.8.8\lib\gcc_dll;), in the computer's
environment variable path.

[attachment deleted by admin]
OS: Windows XP SP2
GUI Library: wxWidgets 2.8.10
IDE: CodeBlocks SVN / Nigth Builds Compiler: MinGW & gcc 3.4.5

ohir

  • Guest
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #4 on: February 06, 2009, 12:19:26 pm »
If project was compiled with MinGW gcc, mingwm10.dll has to be in your search path or in executable's directory.

wedgeA

  • Guest
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #5 on: April 03, 2009, 06:18:25 pm »
I apologize in advance if this is a painful newbie question.

I am getting this same wxmsw28ud_gcc.dll error on any computer I try to run the .EXE except for my coding computer.  I was hoping to write a stand alone .EXE using CB, minGW, and wxWidgets.  Am I missing something for distribution?  I am building the .EXE as target release.  I am compiling on win XP for win XP.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #6 on: April 03, 2009, 06:34:59 pm »
I apologize in advance if this is a painful newbie question.

I am getting this same wxmsw28ud_gcc.dll error on any computer I try to run the .EXE except for my coding computer.  I was hoping to write a stand alone .EXE using CB, minGW, and wxWidgets.  Am I missing something for distribution?  I am building the .EXE as target release.  I am compiling on win XP for win XP.

You can use this tool :http://www.dependencywalker.com/  to check which DLL's your EXE was depend on. Then Copy these DLLs with your EXE files. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

wedgeA

  • Guest
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #7 on: April 03, 2009, 07:20:09 pm »
Thanks for the tips!  So now I understand that for distribution I will always need to include at a minimum the wxmsw28ud_gcc.dll with every release .EXE file.  Is there any way to create a stand alone .EXE that does not depend on additional libraries?

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #8 on: April 03, 2009, 10:41:11 pm »
Thanks for the tips!  So now I understand that for distribution I will always need to include at a minimum the wxmsw28ud_gcc.dll with every release .EXE file.  Is there any way to create a stand alone .EXE that does not depend on additional libraries?

Yes, it is possible. Look for statically linked libraries, which are "supported" (it is actually the linker's job) by Code::Blocks. However, this is not the place to talk more in deep about this issue.

Offline yk1225

  • Single posting newcomer
  • *
  • Posts: 8
Re: wxWidget issue (wxmsw28ud_gcc.dll related)
« Reply #9 on: August 23, 2009, 03:39:22 pm »
i also have this problem, and my OS is VISTA, and i am new to codeblocks ,too. now i am google and baidu to find the solution .i would be very happy when someone can give me a hand ;)