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;
[code]
C:\Users\Ramy\Desktop>nvcc -m32 -ccbin "C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\cl.exe" matmat.cu
matmat.cu
tmpxft_0000118c_00000000-3_matmat.cudafe1.gpu
tmpxft_0000118c_00000000-8_matmat.cudafe2.gpu
matmat.cu
tmpxft_0000118c_00000000-3_matmat.cudafe1.cpp
tmpxft_0000118c_00000000-14_matmat.ii
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
[/code]
And kernel32.lib is in Microsoft SDK v7.0, but I don't know how to set the path.
Can comeone help me?
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" matmat.cu

matmat.cu

tmpxft_0000118c_00000000-3_matmat.cudafe1.gpu

tmpxft_0000118c_00000000-8_matmat.cudafe2.gpu

matmat.cu

tmpxft_0000118c_00000000-3_matmat.cudafe1.cpp

tmpxft_0000118c_00000000-14_matmat.ii

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?

#1
Posted 11/21/2011 11:12 PM   
I have the same problem please help
/argh.gif' class='bbc_emoticon' alt=':argh:' /> /argh.gif' class='bbc_emoticon' alt=':argh:' /> /argh.gif' class='bbc_emoticon' alt=':argh:' />
I have the same problem please help

/argh.gif' class='bbc_emoticon' alt=':argh:' /> /argh.gif' class='bbc_emoticon' alt=':argh:' /> /argh.gif' class='bbc_emoticon' alt=':argh:' />

#2
Posted 11/28/2011 07:58 PM   
Same problem here, troubled me a long time! Tried to reinstall Microsoft SDK but problem remains. Anyone help?
Same problem here, troubled me a long time! Tried to reinstall Microsoft SDK but problem remains. Anyone help?

#3
Posted 02/14/2012 01:15 PM   
Scroll To Top