Beginner
2009-09-23 04:02:53 UTC
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.
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.