Why libtag.dll need mingw libs to run?

Lukáš Lalinský lalinsky at gmail.com
Sat Feb 9 13:54:16 UTC 2013

If you compiled TagLib with MSVC, you would have the same problem, but
it would ask for msvcrXX.dll and msvcpXX.dll instead. By default, both
MSVC and MinGW use a shared version of the standard C/C++ libraries.

I'm not sure if it will work for a DLL file, but MinGW has options
-static-libgcc and -static-libstdc++ to use a static standard library
instead. Adding those options to the CMAKE_SHARED_LINKER_FLAGS CMake
variable could work, but I have not tested it.


On Sat, Feb 9, 2013 at 2:34 PM, Krzysztof <dibo20 at wp.pl> wrote:
> Hi,
> I'm loading dynamically libtag.dll from Free Pascal compiler. I compiled
> taglib using MinGW. When I load libtag.dll I get error that it can't find
> mingw libs like libgcc_s_dw2-1.dll etc. Can I configure make and cmake to
> solve these dependencies? I know that I can add mingw to enviromnent path,
> but I would like deploy my application without those libs.
> Regards
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel

More information about the taglib-devel mailing list