Discussion:
User32.lib was not found. How can I get that?
Beginner
2009-09-23 04:02:53 UTC
Permalink
My project name is Test and my C file name is main.c when I try to build my Test project I get a build failed along with this trace as shown below: -



Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\Owner\My Documents\NetBeansProjects\Test



/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf

make[1]: Entering directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'

/usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/test.exe

make[2]: Entering directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'

mkdir -p dist/Debug/Cygwin-Windows

gcc.exe -o dist/Debug/Cygwin-Windows/test build/Debug/Cygwin-Windows/main.o

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32

collect2: ld returned 1 exit status

make[2]: *** [dist/Debug/Cygwin-Windows/test.exe] Error 1

make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'

make[1]: *** [.build-conf] Error 2

make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'

make: *** [.build-impl] Error 2



Build failed. Exit value 2.



I think it has to do with User32.lib is not found. Is there a way I can download this file from somewhere or is there some easy fix to this problem. Can someone please help me resolve this problem.
Valeriy Soldatov
2009-09-23 06:57:07 UTC
Permalink
What return 'cygcheck -c' and 'cygcheck -r -s' commands?
Post by Beginner
My project name is Test and my C file name is main.c when I try to build my Test project I get a build failed along with this trace as shown below: -
Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\Owner\My Documents\NetBeansProjects\Test
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'
/usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/test.exe
make[2]: Entering directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'
mkdir -p dist/Debug/Cygwin-Windows
gcc.exe -o dist/Debug/Cygwin-Windows/test build/Debug/Cygwin-Windows/main.o
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/Cygwin-Windows/test.exe] Error 1
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Owner/My Documents/NetBeansProjects/Test'
make: *** [.build-impl] Error 2
Build failed. Exit value 2.
I think it has to do with User32.lib is not found. Is there a way I can download this file from somewhere or is there some easy fix to this problem. Can someone please help me resolve this problem.
---------------------------------------------------------------------
Beginner
2009-09-24 00:13:39 UTC
Permalink
Post by Valeriy Soldatov
What return 'cygcheck -c' and 'cygcheck -r -s' commands?
I have attached a text file with the same information I pasted in my previous post. The information in the text file is in a clear and ordered format for your convenience. Let me know if this helps.




Attachments:
http://forums.netbeans.org//files/cygcheck_102.txt
http://forums.netbeans.org//files/cygcheck_182.txt
Valeriy Soldatov
2009-09-24 07:27:39 UTC
Permalink
Thanks. I think you have not 'w32api' package from Libs category. Can
you install it?
Post by Beginner
Post by Valeriy Soldatov
What return 'cygcheck -c' and 'cygcheck -r -s' commands?
I have attached a text file with the same information I pasted in my previous post. The information in the text file is in a clear and ordered format for your convenience. Let me know if this helps.
http://forums.netbeans.org//files/cygcheck_102.txt
http://forums.netbeans.org//files/cygcheck_182.txt
Beginner
2009-09-24 00:00:49 UTC
Permalink
Post by Valeriy Soldatov
What return 'cygcheck -c' and 'cygcheck -r -s' commands?
So I went to my cygwin\bin directory and I ran the cygwin commands you had suggested in the bin directory: -



cygcheck -c I got: -



Cygwin Package Information

Package Version Status

_update-info-dir 00829-1 OK

bash 3.2.49-22 OK

binutils 20080523-1 OK

coreutils 6.10-2 OK

crypt 1.1-1 OK

cygwin 1.5.25-15 OK

gawk 3.1.6-1 OK

gcc-core 3.4.4-3 OK

gcc-g++ 3.4.4-3 OK

gcc-g77 3.4.4-3 OK

gcc-mingw-core 20040810-1 OK

gcc-mingw-g++ 20040810-1 OK

gcc-mingw-g77 20040810-1 OK

gdb 6.8-2 OK

libiconv2 1.13-1 OK

libintl2 0.12.1-3 OK

libintl3 0.14.5-1 OK

libintl8 0.17-4 OK

libncurses8 5.5-4 OK

libncurses9 5.7-5 OK

libreadline6 5.2.14-12 OK

make 3.81-2 OK

mingw-runtime 3.15.2-1 OK

tcltk 20080420-1 OK

termcap 20050421-1 OK

terminfo 5.7_20090228-1 OK

terminfo0 5.5_20061104-2 OK

texinfo 4.13-3 OK

tzcode 2008h-1 OK





For cygcheck -r -s I got: -





Cygwin Configuration Diagnostics

Current System Time: Wed Sep 23 19:53:15 2009



Windows XP Professional Ver 5.1 Build 2600 Service Pack 3



Path: C:\WINDOWS\system32

C:\WINDOWS

C:\WINDOWS\System32\Wbem

C:\Program Files\Common Files\Roxio Shared\DLLShared\

C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\

C:\Program Files\Java\jdk1.6.0_13\bin

C:\cygwin\bin

C:\Program Files\QuickTime\QTSystem\



Output from C:\cygwin\bin\id.exe (nontsec)

UID: 400(Owner) GID: 401(mkpasswd)

401(mkpasswd)



Output from C:\cygwin\bin\id.exe (ntsec)

UID: 400(Owner) GID: 401(mkpasswd)

401(mkpasswd)



SysDir: C:\WINDOWS\system32

WinDir: C:\WINDOWS



Path = 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files

\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared

\9.0\DLLShared\;C:\Program Files\Java\jdk1.6.0_13\bin;C:\cygwin\bin;C:\Program F

iles\QuickTime\QTSystem\'



HKEY_CURRENT_USER\Software\Cygnus Solutions

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2

(default) = '/cygdrive'

cygdrive flags = 0x00000022

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/

(default) = 'C:\cygwin'

flags = 0x0000000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin

(default) = 'C:\cygwin/bin'

flags = 0x0000000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib

(default) = 'C:\cygwin/lib'

flags = 0x0000000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options



c: hd NTFS 295205Mb 10% CP CS UN PA FC OS

d: cd N/A N/A



C:\cygwin / system binmode

C:\cygwin/bin /usr/bin system binmode

C:\cygwin/lib /usr/lib system binmode

. /cygdrive system binmode,cygdrive



Not Found: awk

Not Found: bash

Not Found: cat

Not Found: cp

Not Found: cpp (good!)

Not Found: crontab

Not Found: find

Not Found: gcc

Not Found: gdb

Not Found: grep

Not Found: kill

Not Found: ld

Not Found: ls

Not Found: make

Not Found: mv

Not Found: patch

Not Found: perl

Not Found: rm

Not Found: sed

Not Found: ssh

Not Found: sh

Not Found: tar

Not Found: test

Not Found: vi

Not Found: vim



7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll

40k 2009/03/01 C:\cygwin\bin\cygform-8.dll

41k 2009/03/27 C:\cygwin\bin\cygform-9.dll

24k 2009/06/23 C:\cygwin\bin\cyghistory6.dll

982k 2009/05/30 C:\cygwin\bin\cygiconv-2.dll

37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll

31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll

31k 2009/06/07 C:\cygwin\bin\cygintl-8.dll

21k 2009/03/01 C:\cygwin\bin\cygmenu-8.dll

21k 2009/03/27 C:\cygwin\bin\cygmenu-9.dll

66k 2009/03/01 C:\cygwin\bin\cygncurses++-8.dll

335k 2009/03/27 C:\cygwin\bin\cygncurses++-9.dll

237k 2009/03/01 C:\cygwin\bin\cygncurses-8.dll

165k 2009/03/27 C:\cygwin\bin\cygncurses-9.dll

11k 2009/03/01 C:\cygwin\bin\cygpanel-8.dll

11k 2009/03/27 C:\cygwin\bin\cygpanel-9.dll

155k 2009/06/23 C:\cygwin\bin\cygreadline6.dll

66k 2009/03/27 C:\cygwin\bin\cygtic-9.dll

1829k 2008/06/12 C:\cygwin\bin\cygwin1.dll

Cygwin DLL version info:

DLL version: 1.5.25

DLL epoch: 19

DLL bad signal mask: 19005

DLL old termios: 5

DLL malloc env: 28

API major: 0

API minor: 156

Shared data: 4

DLL identifier: cygwin1

Mount registry: 2

Cygnus registry name: Cygnus Solutions

Cygwin registry name: Cygwin

Program options name: Program Options

Cygwin mount registry name: mounts v2

Cygdrive flags: cygdrive flags

Cygdrive prefix: cygdrive prefix

Cygdrive default prefix:

Build date: Thu Jun 12 19:34:46 CEST 2008

CVS tag: cr-0x5f1

Shared id: cygwin1S4





Can't find the cygrunsrv utility, skipping services check.





Cygwin Package Information

Package Version

_update-info-dir 00829-1

bash 3.2.49-22

binutils 20080523-1

coreutils 6.10-2

crypt 1.1-1

cygwin 1.5.25-15

gawk 3.1.6-1

gcc-core 3.4.4-3

gcc-g++ 3.4.4-3

gcc-g77 3.4.4-3

gcc-mingw-core 20040810-1

gcc-mingw-g++ 20040810-1

gcc-mingw-g77 20040810-1

gdb 6.8-2

libiconv2 1.13-1

libintl2 0.12.1-3

libintl3 0.14.5-1

libintl8 0.17-4

libncurses8 5.5-4

libncurses9 5.7-5

libreadline6 5.2.14-12

make 3.81-2

mingw-runtime 3.15.2-1

tcltk 20080420-1

termcap 20050421-1

terminfo 5.7_20090228-1

terminfo0 5.5_20061104-2

texinfo 4.13-3

tzcode 2008h-1

Use -h to see help about each section





I have provided the information as you had requested if you could please help me resolve the problem that would be much appreciated so I can start coding and building C/C++ projects.
Beginner
2009-10-05 01:52:58 UTC
Permalink
Got it to work, thanks your suggesstion really proved valuable that exactly solved the problem. Sorry for the late reply.
Continue reading on narkive:
Loading...