Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: JoeDaStudd on September 19, 2008, 01:35:30 pm

Title: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: JoeDaStudd 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
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: Jenna 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.
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: JoeDaStudd 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?
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: alb_cb_moon 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]
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: ohir 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.
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: wedgeA 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.
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: ollydbg 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
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: wedgeA 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?
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: Ceniza 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.
Title: Re: wxWidget issue (wxmsw28ud_gcc.dll related)
Post by: yk1225 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 ;)