> On 23.08.2011 10:36, Stuart Shepherd wrote: > > > I've created a app that runs happily on windows (under MinGW) and on Linux. > > But when I try and run the executable on a windows pc that doesn't have > > MinGW installed, I need to copy loads of DLLs over. Is there a way to > > statically link in all the required Dlls etc... So I have one exe file that > > can run anywhere. > > Loads of DLLs? Does "two" qualify for "loads of"? ;-) > > AFAICT these DLLs are needed in the newer GCC (4.5+) default builds. > These are libgcc_s_dw2-1.dll and libstdc++-6.dll (if you have others, > please tell us). > > You can avoid this by defining LDFLAGS before running configure, > like this: > > autoconf; LDFLAGS="-static-libgcc -static-libstdc++" ./configure; make > > Add other configure switches as needed. > > Note that this doesn't work with the *newest* version of mingwrt-3.19 > as released on Aug 21, 2011. I wrote a bug report already. If you > have mingwrt-3.18 installed, this ought to work. The dev's are working > on a fix, and mingwrt-3.20 will probably (hopefully) have a fix for > this. > > Albrecht
Thanks for your help, when I run the exe again it was only two DLLs it was asking for not sure what I did the first time. But with LDFLAGS it works as a standalone exe which is what I wanted. Thanks very much Stuart. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

