Hi All,

I was working on the project that was building very well on Visual Studio 2008 Express Edition.
Later I have installed the Visual Studio 2008 professional along with Visual Studio 2008 SP1.

Now I am trying to build the project, which shows the following Error.

fatal error LNK1181: cannot open input file 'kernel32.lib'
fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory

Do I need to check for the Registry entries for the installation path? OR
Is there any modification’s do I need to do in Environment variables?
Kindly suggest me to get rid of this Issue.

Re: fatal error LNK1181: cannot open input file 'kernel32.lib' 80 80

I don't know much on the problem, but I found a few links that might help you:


http://www.daniweb.com/forums/thread290836.html (a daniweb page which has been solved)


Even if they don't straight up solve your problems, at least they might be able to help you a little bit.

Re: fatal error LNK1181: cannot open input file 'kernel32.lib' 80 80

First check your computer to see if winsock2.h actually exists. If it does, then you probably need to make a change to the list of folders that the compiler uses. You will find that list in Tools or Options menu item. I don't have that compiler installed any more but you will find standard compiler search folders somewhere there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.