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.

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

http://social.msdn.microsoft.com/forums/en-US/Vsexpressvc/thread/426d85b4-db84-4c01-a9d4-d3fd025339c0

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

http://social.msdn.microsoft.com/forums/en-US/Vsexpressvc/thread/426d85b4-db84-4c01-a9d4-d3fd025339c0

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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.