Finally, debug the first program in linux

Source: Internet
Author: User
Finally, the first program-general linux technology-Linux programming and kernel information was debugged in Linux. The following is a detailed description. Today, I wrote the algorithm in the book in a program. I didn't expect many problems.
1. When writing a program, it is especially careless. Due to many irregularities, debugging may take a lot of time.
2. An error occurred while compiling the program with vc. I haven't figured it out for a long time on the Internet. There are two possible reasons. One is that there is really one less debug symbol, and the other is the reason for Kaspersky. I used to encounter a crash in the VC compilation connection. Turn it off. This time I got stuck, but some people said it was a problem to reinstall it after it was removed. This will be resolved in the future.
3. After the problem occurs, I did not study the problem carefully, but searched the internet. If you study the problem, it may be more efficient to solve the problem.
4. Compiling in linux does not cause any problems in VC. But I started to think it was difficult to use GDB for debugging. It will be adjusted in the VC. Later, I was forced to use GDB.
Debugging. After reading it for a while, you can also perform some operations. Never learn things, never.
4. Take a moment to learn.
Related Article

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.