简体   繁体   中英

VS 2010: LNK2019 error for Win7 API

I'm trying to use a Win7 API. I copy/pasted a code sample, and it won't compile because of LNK2019 errors. However, if I go to "C:\\Program Files\\Microsoft SDKs\\Windows", I see that I have the necessary .lib files.

What am I doing wrong? Is it possible that the files are on my machine, but VS isn't recognizing them somehow?

Even if the .LIB is included in the SDK path you'll need to explicitly specify the ones to be linked inside the project compilation options. Are all of the .LIB files you require explicitly specified in the project compilation options?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM