Page 1 of 1

wxWidgets Executable Size

Posted: Thu May 08, 2008 2:52 pm
by quandary
Hi!

I have a wxWidgets application.
Basically, what it does is opening a OpenFile Dialog box and then writing the filename and path into a config file.

Now, I now that the executable size of wxWidgets is supposed to be rather big.

But I compiled my application on Windows, where it gets 4.5 MB big, and on Linux, where it is "only" 221 kB.

On both platforms I compile with

Code: Select all

g++ injector.cpp `wx-config --libs` `wx-config --cxxflags` -o inject
Is that normal that on Windows, the executable is 20 times as big as on Linux, or is there another reason for this (like some debug info compiled)?

Posted: Thu May 08, 2008 2:57 pm
by lester
maybe on windows You have static linked .exe?

Posted: Thu May 08, 2008 3:21 pm
by quandary
lester wrote: maybe on windows You have static linked .exe?
Yes I do.
Hm, I installed the Linux version of wxWidgets with apt-get.

Does that mean that the Linux-version is dynamically linked by default ?

So it will miss the wxWidgets runtime on Linux, if it isn't installed?

Posted: Thu May 08, 2008 4:23 pm
by tierra

Posted: Thu May 08, 2008 5:42 pm
by Auria
quandary wrote: Does that mean that the Linux-version is dynamically linked by default ?

So it will miss the wxWidgets runtime on Linux, if it isn't installed?
yes and yes