From: Eli Z. <el...@gn...> - 2012-08-06 16:09:16
|
> Date: Mon, 6 Aug 2012 07:01:49 -0700 (PDT) > From: mingw124 <for...@li...> > > Each time I compile a mingw c/c++ program however small it will always > require two dlls. > > Is there a way to compile my program or basically end up without having to > use or ship those dlls with my program? According to a recent thread here, you need to use '-static-libgcc' and (for C++) '-static-libstdc++' switches at link time, then these 2 libraries are statically linked into your executables. |