ld: cannot find -lgdi32

Bug #540795 reported by c-yan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nimrod
New
Medium
Andreas Rumpf

Bug Description

What should I do?

>ver

Microsoft Windows XP [Version 5.1.2600]

>nimrod --version
Nimrod Compiler Version 0.8.8 (2010-03-14) [Windows: i386]
Copyright (c) 2004-2010 by Andreas Rumpf

>nimrod c --app:gui hellowin.nim
Hint: used config file 'C:\Program Files\nimrod\config\nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: hellowin [Processing]
Hint: windows [Processing]
"C:\Program Files\nimrod\dist\mingw\bin\gcc.exe" -c -w -I"C:\Program Files\nimrod\lib" -o nimcache\lib\system.o nimcache\lib\system.c
"C:\Program Files\nimrod\dist\mingw\bin\gcc.exe" -c -w -I"C:\Program Files\nimrod\lib" -o nimcache\nim__dat.o nimcache\nim__dat.c
"C:\Program Files\nimrod\dist\mingw\bin\gcc.exe" -c -w -I"C:\Program Files\nimrod\lib" -o nimcache\lib\windows\windows.o nimcache\lib\windows\windows.c
"C:\Program Files\nimrod\dist\mingw\bin\gcc.exe" -c -w -I"C:\Program Files\nimrod\lib" -o nimcache\hellowin.o nimcache\hellowin.c
"C:\Program Files\nimrod\dist\mingw\bin\gcc.exe" -mwindows -o hellowin.exe nimcache\hellowin.o nimcache\lib\windows\windows.o nimcache\nim__dat.o nimcache\lib\system.o
ld: cannot find -lgdi32
Error: execution of an external program failed

Revision history for this message
c-yan (nekomaho) wrote :
Revision history for this message
Andreas Rumpf (rumpf-a) wrote :

The shipped GCC lacks gdi32.lib, because it has been stripped down for the Nimrod distribution. Please copy the attached file to $nimrod\dist\mingw\lib and see if this fixes the bug.

Changed in nimrod:
importance: Undecided → Medium
assignee: nobody → Andreas Rumpf (rumpf-a)
Revision history for this message
c-yan (nekomaho) wrote :

copy libgdi32.a to $nimrod\dist\mingw\lib and get the following error message:
ld: cannot find -lcomdlg32

Revision history for this message
Andreas Rumpf (rumpf-a) wrote :

Sorry.

Revision history for this message
Andreas Rumpf (rumpf-a) wrote :
Revision history for this message
Andreas Rumpf (rumpf-a) wrote :

In case things are still missing, please download the whole Mingw GCC package. You can find it here:
http://force7.de/nimrod/download/mingw.zip

Revision history for this message
c-yan (nekomaho) wrote :

copy libcomdlg32.a to $nimrod\dist\mingw\lib and get no error. thanx. (don't copy libcomctl32.a yet)
the future version of nimrod will be shipped with these files?
if not so, i want the link from http://force7.de/nimrod/download.html to http://force7.de/nimrod/download/mingw.zip.
thanx.

Revision history for this message
Andreas Rumpf (rumpf-a) wrote :

Yes, the next version will include these files. But the website will contain a link to Mingw anyway.

Revision history for this message
c-yan (nekomaho) wrote :

i see. thanx.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.