I have a problem when I try to build my C++ console application with Visual Studio. Every time I get the error: LNK1104 - cannot open file kernel32.lib
I'm starting to learn C++ by using a tutorial so I'm very new to this. I've tried some things I found on Google and I tried to retype all of my code.
I'm still not sure how to fix this problem. I hope that someone can help me.
Thanks,
Check the VC++ directories, in VS 2010 these can be found in your project properties. Check whether $(WindowsSdkDir)\\lib is included in the directories list, if not, manually add it. If you're building for X64 platform, you should select X64 from the “Platform” ComboBox, and make sure that $(WindowsSdkDir)\\lib\\x64 is included in the directories list.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.