Changing Enviromental Variables to the folder where Kernel32.lib exists.
Note: This is my 2nd time going over unreal engine c++ course. The first time, I did not encounter this problem. Somewhere along the line I decided to learn a C++ course before finishing the course and it had me change the environmental variables path in order to be able to use a different IDE call codelite for my C++ course. Maybe this is what’s causing this problem?
Deleting the Folders with Kernel32.lib and reinstalling Visual Studio 2019 and VS Code.
I have spent 5 days trying to solve this problem on my own but to no avail. Any help is appreciated.
You did the most logical steps to solve the problem, so if the cause was a common one you would’ve already solved this out. Seems like what you’re pointing out here is a good candidate to be the culprit, but because you already tried to handle this issue by editing the environment variables, I would once again start from the beginning;
Microsoft dedicates an entire section to Error LNK1104 and when it comes to kernel323.lib it states:
“If the file that can’t be opened is one of the standard library files provided by Microsoft, such as kernel32.lib , you may have a project configuration error or an installation error. Verify the Windows SDK has been installed. If your project requires other Microsoft libraries, such as MFC, make sure the MFC components were also installed by the Visual Studio installer. You can run the installer again to add optional components at any time.”
I see you have the latest SDK installed and it already contains all API from previous versions, still what @DanM suggests seems the right thing to do, so I would try experimenting with SDK too.
@DanM I booted up VS 2019 just now. It seems like it was able to run a simple hello world console app.
I’ll give this a try!
Update: 10/20/21
For anyone on PC with the same issue, I suggest you try out Visual Studio 2019, it works just fine. You will have to learn some extra stuff, such as the layout, where things are, etc