Craft icon indicating copy to clipboard operation
Craft copied to clipboard

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

Open ghost opened this issue 2 years ago • 1 comments

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

ghost avatar Aug 05 '22 09:08 ghost

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.

JuanmaDevG avatar Feb 04 '23 15:02 JuanmaDevG