Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Aug 5, 2022 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Aug 5, 2022

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
Copy link

JuanmaDevG commented Feb 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant