delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/21/14:32:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Daniel_Casey AT jbhunt DOT com
Subject: ld missing???
To: cygwin AT cygwin DOT com
X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001
Message-ID: <OF2C27F052.9EF1501B-ON86256B83.006AF73E@jbhunt.com>
Date: Thu, 21 Mar 2002 13:28:52 -0600
X-MIMETrack: Serialize by Router on notes8/JBHunt(Release 5.0.6a |January 17, 2001) at
03/21/2002 01:28:56 PM
MIME-Version: 1.0

Just downloaded and installed Cygwin and the binutils, automake*, and gcc
packages.

I've written a smal C program and this is the error near the end:

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status

Here is the complete output from a gcc -v:

$ gcc -v hw.c -o hw.exe
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cpp0.exe -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=95 -D_X86_=1 -D_X86_=1 -Asys
tem(winnt) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686
-Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro
 -D__pentiumpro__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl
=__attribute__((__cdecl__)) -D_stdcall=__attribute__
((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)
=__attribute__((x)) -D__CYGWIN32__ -D__CYGWIN__ -Duni
x -D__unix__ -D__unix -isystem /usr/local/include -idirafter /usr/include
-idirafter /usr/include/w32api hw.c /cygdrive/
c/DOCUME~1/jisndc1/LOCALS~1/Temp/cc0aQZLM.i
GNU CPP version 2.95.3-5 (cygwin special) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/include
 /usr/include
 /usr/include/w32api
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cc1.exe
/cygdrive/c/DOCUME~1/jisndc1/LOCALS~1/Temp/cc0aQZLM.i -quiet -dumpbase
 hw.c -version -o /cygdrive/c/DOCUME~1/jisndc1/LOCALS~1/Temp/ccslxEov.s
GNU C version 2.95.3-5 (cygwin special) (i686-pc-cygwin) compiled by GNU C
version 2.95.3-5 (cygwin special).

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/as.exe


-o /cygdrive/c/DOCUME~1/jisndc1/LOCALS~1
/Temp/ccyWDI8h.o /cygdrive/c/DOCUME~1/jisndc1/LOCALS~1/Temp/ccslxEov.s
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic
--dll-search-prefix=cyg -o hw.exe /usr/lib/crt0.o -L/us
r/local/lib -L/usr/lib -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5
/cygdrive/c/DOCUME~1/jisndc1/LOCALS~1/Temp/ccyWDI8h.o
-lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019