Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Removing LIBGCC_S_DW2-1.DLL dependency

Credits go to Edgar Reynaldo for helping out!
This thread is locked; no one can reply to it. rss feed Print
Removing LIBGCC_S_DW2-1.DLL dependency
Zepper
Member #8,715
June 2007
avatar

How do I compile Allegro 4.4.2 (MinGW32) without the LIBGCC_S_DW2-1.DLL dependency? I've heard about using -static-libgcc -static-libstdc++ flags, but in which file should I put them??? Thanks.

Elias
Member #358
May 2000

In my experience the only reliable way is to remove libgcc_s_dw2-1.dll from your mingw distribution before compiling Allegro.

--
"Either help out or stop whining" - Evert

Zepper
Member #8,715
June 2007
avatar

Nope, the compiler doesn't even start without the file.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I think when compiling Allegro you can use the '-static' flag in the CMAKE_C_STANDARD_LIBRARIES variable and then Allegro won't depend on LibGCC or LibC++ anymore. And it will make gcc prefer static libraries over dynamic ones for all the libraries linked afterwards.

Zepper
Member #8,715
June 2007
avatar

Solved.
Thanks a lot. ^_^;;

Go to: