Code::Blocks Forums

User forums => Help => Topic started by: wobien on January 10, 2008, 05:00:06 pm

Title: stand alone version for wxWidgets program
Post by: wobien on January 10, 2008, 05:00:06 pm
I made a little wxWidgets-based program that I would like to give to a friend. He is not very computer-wise, so it would be best to have just one file that has to be double clicked, no installing etc.
Can I make a version that does not depend on wxmsw28_gcc_custom.dll and mingwm10.dll?
Title: Re: stand alone version for wxWidgets program
Post by: dje on January 10, 2008, 05:40:46 pm
Hi !

Concerning wxmsw28_gcc_custom.dll, you just need to build statically wxWidgets and then link your exe to it.
I don't know for mingwm10.dll

Dje
Title: Re: stand alone version for wxWidgets program
Post by: thomas on January 10, 2008, 05:49:53 pm
Concerning wxmsw28_gcc_custom.dll, you just need to build statically wxWidgets and then link your exe to it.
Note that the executable size will be huge... but I guess size doesn't matter in your case.

You can get rid of mingwm10.dll if you don't use threads. You will have to compile wxWidgets without thread support (--disable-threads), however.
Title: Re: stand alone version for wxWidgets program
Post by: wobien on January 10, 2008, 09:50:19 pm
Thanks for your anwers.
I do use threads in this program. It launches some long processes that would otherwise freeze the app.
So I cannot get rid of mingwm10.dll
Then it is probably better to make a self-starting CD-ROM, so it is no problem to use the dll's.
Title: Re: stand alone version for wxWidgets program
Post by: Jenna on January 10, 2008, 10:04:35 pm
Thanks for your anwers.
I do use threads in this program. It launches some long processes that would otherwise freeze the app.
So I cannot get rid of mingwm10.dll
Then it is probably better to make a self-starting CD-ROM, so it is no problem to use the dll's.
You can put the dll and your program into a self-executing zip-( or 7z-)file, that extracts everything in the same directory.