I'm stuck here with a problem that should be simple. CL/LINK can't seem to link anything to user32.lib. There are no problems compiling with the /c option....
Here is the error:
error LNK2019: unresolved external symbol
my makefile looks like this:
cl \\$(CFLAGS) /c syshooks.cpp
where CFLAGS = /I. /Ox /DWIN32 /DLTN_SRC /W3 /GX
I'm running this makefile with "nmake -f makefile.msvc syshooks" from the command line. I've checked the shell to make sure that the lib env variable is being set properly, and it is:
echo %lib% c:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;c:\Program Fil
es\Microsoft Visual Studio .NET 2003\VC7\LIB;c:\Program Files\Microsoft Visual S
tudio .NET 2003\VC7\PlatformSDK\lib\prerelease;c:\Program Files\Microsoft Visual
Studio .NET 2003\VC7\PlatformSDK\lib;c:\Program Files\Microsoft Visual Studio .
User32.lib is found in the bolded path. It looks like the compiler can't find it for some reason. I've double checked that it exists, although I'm not sure what to do now. I'm getting desperate here, does anyone have any ideas ? The same code worked fine with visual C 6.0 and Borland, but not with this new version of cl.