From: <bis...@bt...> - 2001-04-12 10:52:38
|
> Don't use the -static switch unless you know what you > are doing. > Default library output for Mingw-g++ , afaik, is still static > libs (.a) > unless you have a make file that configured to create dynamic link > libraries (.dll). With the latest MingW snapshot, when I compile the standard helo World with iostream: g++ -o hello.exe -Os -s -fno-exceptions -fno-rtti hello.cpp I get 12/04/01 10:34 3,584 hello.exe which is pretty good sizewise (amazing how much of a difference a dynamic libc++ makes !) but when I do: E:\C++>g++ -o hello.exe -Os -s -fno-exceptions -fno-rtti hello.cpp -static I get: Warning: resolving _cout by linking to __imp__cout (auto-import) fu000001.o(.idata$3+0xc): undefined reference to `libstdc___a_iname' nmth000000.o(.idata$4+0x0): undefined reference to `_nm__cout' And there is no executable. Am I doing something wrong ? - Biswa. |