Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » "libgcc_s_dw2-1.dll" and GCC 4.4.0 (Allegro 4.9.x)

This thread is locked; no one can reply to it. rss feed Print
"libgcc_s_dw2-1.dll" and GCC 4.4.0 (Allegro 4.9.x)
Todd Cope
Member #998
November 2000
avatar

I just discovered that MinGW finally got around to releasing a binary package for GCC 4. After installing all the necessary files I recompiled Allegro 4.9.13 to see if everything would go smoothly. The build went fine but when I tried to run any of the examples or the demo I got an error stating "libgcc_s_dw2-1.dll" was not found.

Here is an excerpt from the MinGW GCC 4.4.0 release notes:

- Dynamic linking with libgcc_s_dw2-1.dll

Dynamic linking with libgcc_s_dw2-1.dll is necessary to throw
exceptions between different modules, such as between two DLLs or a
DLL and an EXE. Consequently, it is the default for all languages
other than C. To disable this dynamic linking, use -static-libgcc.
To enable this dynamic linking in C, use -shared-libgcc.

According to this, the DLL should only be required when using C++. In Windows this means it will be required by default because the DirectX driver is C++. Is there any way I could configure Allegro to use the '-static-libgcc' option during the build process?

X-G
Member #856
December 2000
avatar

[n/m, misread]

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Peter Wang
Member #23
April 2000

Try adding it to CMAKE_CXX_FLAGS.

Go to: