fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.38k stars 1.39k forks source link

"cmake ." results in "fatal error LNK1104: can't open file 'kernel32.lib'" #298

Open ghost opened 2 years ago

ghost commented 2 years ago

I followed all windows steps, but when I try to compile with "cmake. " I get that error, and I'm unable to fix it.

JuanmaDevG commented 1 year ago

The kernel32.lib is a Windows system library. Did you change the linker settings? And so, did you install necessary packages to compile cpp? With that I mean the exact same packages required.

In configuration default application you need to put your Windows System in developer mode to get the propietary windows libs.

Go to "For Developers/Developer Settings/Developer Mode" and switch it on.

If you aready did it, revise the dependencies configuration in the Visual Studio compiler and linker. Some library configuration you made must be wrong.