开发者

How do I add a C library to a Microsoft Visual C++ project?

开发者 https://www.devze.com 2023-03-08 04:18 出处:网络
I am working on a project in Microsoft Visual C++. I want to add the USB device driver library which is a C library.

I am working on a project in Microsoft Visual C++. I want to add the USB device driver library which is a C library.

Do I need to build some ext开发者_JAVA技巧ra library to add this USB library?


Go to the project menu, then properties, configuration properties tab

  • at C/C++, general, put the header file directory in "Additional Include Directories"
  • in Linker, general, add the directory that the .lib files are in to "Additional Library Directories"
  • in Linker, input, add the names of the .lib files to "Additional Dependencies"

Compile you program, and if necessary, copy any .dlls you will need to the directory containing the .exe

0

精彩评论

暂无评论...
验证码 换一张
取 消