(103) Debugging of Static library (. a)

Source: Internet
Author: User

The method described in the previous section only creates a static library and cannot be debugged because creating a static library project directly is not an executable file.

The method that this article describes creates a static library breakpoint that works when you debug.

In order to be able to debug a static library, it should be in an executable project (for example, single View application) and then add a static library inside it, adding the method as shown:

Click on the project configuration, in the lower part there is a +, click to select the static library then create.

Once created, you will find two more folders in your project:

This is the new static library.

You can find two projects to choose from:

The first is the executable project, the second is the static library, if you want to compile the static library, select the second one, follow the previous article, and if you want to debug a static library, select the first, the header file that contains the static library.

"Debug required configuration for static libraries"

To execute the project's build phases, add a static library of projects and. A Files:


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

(103) Debugging of Static library (. a)

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.