From: Charm0nt <cha...@ma...> - 2014-02-15 02:15:19
|
I wrote simple test program. For building use next commands: mingw32-gcc.exe -Wall -O2 -c main.c -o main.o mingw32-g++.exe -o result.exe main.o -s -lssh2 -lssl -lcrypto -lgdi32 -lws2_32 -lz And get exe with size 1.50 MB. Looks like it is because I use static linking for libraries. How dynamic link all libraries (use dll files) except libssh2.a (static link it)? Thank you for advices. |