Get lib file using src file

Source: Internet
Author: User

Sometimes the source of the download only the corresponding makefile, there is no window corresponding to the generation method, but still can use the static library:

1 Open vs2013 Create a new Win32 Console Application (WIN32 console project )

2 Static library (static library remove precompiled Header (precomplied header  , click Done.

3 add header files to the project and source (. c)

4  properties -> Configuration Properties

1) in the C + + key point Open general, the first add-on contains the directory to fill the header file corresponding to the directory

2) at the midpoint of C + + items, the second is compiled to Select compile to C code (/tc)

 

< Span style= "Font-family:times New Roman;" > 5  Build the project, the build will releaselua.lib

< Span style= "font-family: ' Times New Roman '; font-size:10.5pt; " >error c4996:  ' fopen ':  this function or variable may be unsafe  

and generate it again.

You can use the Lib file when you add the library file directory and the library filename in the future.

Get lib file using src file

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.