Code::Blocks Forums
User forums => Help => Topic started 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?
-
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
-
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.
-
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.
-
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.