Adding Lib library references in VS2010

Source: Internet
Author: User

Add a Lib library reference in VS2010:
1 Menu Items---> Properties---> Configure Properties--linker----> Input---Additional dependencies, add library names such as: My_api.lib;
or in the CPP source file with code #pragma comment (lib, "My_api.lib") instead.
at this point, the compiler will prompt the error: fatal error LNK1104: Unable to open the file "My_api.lib", because the compiler does not know where to find our library, the following to solve
2 Then add the library file path to the project and add the additional library path:
the project---> Properties---> Configuration Properties---> The arrow to the right of the regular-to-add library directory point, which adds the path to our library. F:\my_program\meiyong\PPPP_Decode_ETIM;
or.. /.. /pppp_decode_etim, and the experimental test is based on the project file. Vcxproj is in the current directory, the current directory in this way to set the better.
that's good.

Adding Lib library references in VS2010

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.