Can't find kernel32.lib

I am trying to compile a simple CUDA kernel.

I have the version 4.0 of CUDA, I also have installed the toolkit and SDK, and set the environment variables.

I use windows 7 64 bit, I give the command to compile a 32 bit versions (otherwise it gives an error) form command prompt.

This is what I get;

C:\Users\Ramy\Desktop>nvcc -m32 -ccbin "C:\Program Files (x86)\Microsoft Visual

Studio 10.0\VC\bin\cl.exe"





LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

And kernel32.lib is in Microsoft SDK v7.0, but I don’t know how to set the path.

Can comeone help me?

I have the same problem please help
:argh: :argh: :argh:

Same problem here, troubled me a long time! Tried to reinstall Microsoft SDK but problem remains. Anyone help?