[Windows] MinGW within Nim install is missing libraries #2723

Senketsu opened this Issue May 14, 2015 · 8 comments


None yet

5 participants

C:/Nim/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgdi32
C:/Nim/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcomdlg32
Error: execution of an external program failed

Just want to let you know that trying to compile with --app:gui param results to this.
Seems like currently the compiler comes with mingw thats missing libs
(Its minor stuff and i feel like whiner )

Windows 7 , nim-0.11.2_x64.exe

@dom96 dom96 added the Installation label May 15, 2015

This is an unfortunate consequence of stripping the base mingw installation of 'unnecessary' files. The fix (at least for the future) is to modify tools\trimcc.nim to test if a gui application still works. I don't know what should be done for the current installer - perhaps, given the existence of #2765, a new installer set should be published?

Araq commented May 21, 2015

@Varriount I'm still waiting for a new set of base mingw zips from you. As you know we can update these under the hood since the installer downloads it on the fly from the website.

dom96 commented Jun 6, 2016

@Varriount Any progress on this?


Planning on fixing it this weekend.

dom96 commented Jun 11, 2016

Make sure to ask @Araq if he fixed it already.

Araq commented Jun 12, 2016

I didn't.


This issue affects me too. Workaround: Use MinGW from https://sourceforge.net/projects/mingw-w64/

@Araq Araq pushed a commit that closed this issue Jan 5, 2017
@trustable-code trustable-code fixes #2723
Added libgdi32.a and libcomdlg32.a to list of essential files
@Araq Araq closed this in 79ba0b7 Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment