From: Bas M. <ml...@ba...> - 2004-07-17 18:14:07
|
Hi, I've compiled several cross versions of mingw32 running on Linux. With all of them, I get a huge binary of 300kB+ when compiling a small program (a hello world with a messagebox). But when I use the native on (mingw32 version 3.1.0 in my case) with the same build options, it is only 17kB. (see below) So it looks like the cross version links in some libs while the native one doesn't. Somebody any idea to resolve this? Thanks for your time! Bas. hello.c: #include <windows.h> int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { MessageBox (NULL, "Hello", "Hello Demo", MB_OK); return (0); } native compile: gcc -mwindows -o hello.exe hello.c cross compile: mingw32-gcc -mwindows -o hello.exe hello.c |