 <p>I got it to compile just fine with MinGW using the following script:</p> <pre><code>del *.o winurl.exe windres winurl.rc winurlres.o gcc -c winurl.c gcc -o winurl.exe winurl.o winurlres.o C:\MinGW\lib\libgdi32.a -mwindows strip winurl.exe del *.o </code></pre>