<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 195: How to distribute compiled programs (DLLs? static linking?)</title><link>https://sourceforge.net/p/mingw-w64/support-requests/195/</link><description>Recent changes to 195: How to distribute compiled programs (DLLs? static linking?)</description><atom:link href="https://sourceforge.net/p/mingw-w64/support-requests/195/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 12 Jan 2024 17:36:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mingw-w64/support-requests/195/feed.rss" rel="self" type="application/rss+xml"/><item><title>How to distribute compiled programs (DLLs? static linking?)</title><link>https://sourceforge.net/p/mingw-w64/support-requests/195/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am facing the common problem of a program (SDCC) where binaries for Windows should be distributed. The Windows build is cross-compiled on GNU/Linux  compiled with MinGW-w64.&lt;/p&gt;
&lt;p&gt;Of course, I run into the  problem that MinGW-w64 compiled software depends on DLLs. So I either should link statically instead, or have to somehow find those DLLs (automatically in the build scripts) to distribute them with the compiled binaries.&lt;/p&gt;
&lt;p&gt;Finding the DLLs is apparently not trivial; people have come with complex solutions, such as &lt;a href="https://blog.rubenwardy.com/2018/05/07/mingw-copy-dlls/" rel="nofollow"&gt;https://blog.rubenwardy.com/2018/05/07/mingw-copy-dlls/&lt;/a&gt; and &lt;a href="https://github.com/Unvanquished/release-scripts/blob/master/build-release;" rel="nofollow"&gt;https://github.com/Unvanquished/release-scripts/blob/master/build-release;&lt;/a&gt; however, AFAIK no such tools is currently included in MinGW-w64. I haven't looked into static linking yet.&lt;/p&gt;
&lt;p&gt;Is there a good and easy way to distribute MinGW-w64-compiled programs for use on Windows? What is the recommended way for this use-case?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Philipp Klaus Krause</dc:creator><pubDate>Fri, 12 Jan 2024 17:36:38 -0000</pubDate><guid>https://sourceforge.net62101c6d6b06c3cceba9d6f2b130682c32ff976a</guid></item></channel></rss>