i installed cygwin on a win2000 machine.
in fact, the error is on the link stage:

$ gcc tst.c
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32

i noted that user32.dll is on c:/winnt/system32 (cygwin looks for
c:/windows?),
so i did:

$ gcc -L/cygdrive/c/WINNT/system32 tst.c
/usr/lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xe6):_cygwin_crt0_common.
cc: undefined reference to `GetModuleHandleA@4'

and finnaly gave up. :(
what am i missing here?

here's what i have installed:

/cygdrive/c/install/cygwin/contrib:
gettext  readline  unzip  wget  zip

/cygdrive/c/install/cygwin/latest:
bash      cygrunsrv  file       gdb    inetutils  ncurses  sh-utils   time
binutils  cygwin     fileutils  grep   less       patch    tar        vim
bzip2     diff       findutils  groff  make       regex    tcltk      which
clear     expect     gcc        gzip   man        sed      textutils  zlib


please reply to me [[EMAIL PROTECTED]] as i'm not subscribed to this
list.. sorry.

thanks for any help,
rodolfo


PS: i love cygwin. it's a big relief, as i'm forced to use win2000 on work..

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to