C++ linking the required DLL with the application <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing">The program can&#39;t start because libgcc_s_dw2-1.dll is missing</a><br> <a href="http://stackoverflow.com/questions/4984612/program-cant-find-libgcc-s-dw2-1-dll">Program can&#39;t find libgcc_s_dw2-1.dll</a> </p> </blockquote> <p>So im using the MinGw C++ Compiler(g++) and i created the simplest application which just prints "Hello World". Now i want to build this application not in debug mode, and to run it on another computer. I searched the net about this and i came across a post in which somebody used PEDUMP to see what DLL's did the program need, i used that and the simple Hello World just needs the Kernel32.dll(which obviously is located in the system32) and the libgcc_s_dw2-1.dll which i believe is of the MinGw compiler. Now how do i link the libgcc_s_dw2-1.dll to my application? Also is it linked inside(binded) the application(exe) or is it separated(not sure how linking works) and if its separated how do i tell the program in which directory to see for that particular dll? Hope i was clear because im not sure how to explain it.</p> <pre><code>#include&lt;iostream&gt; using namespace std; int main() { cout &lt;&lt; "Hello"; } </code></pre> <p>`Here is the code @jarekczek</p>