Small program debugging experience on Linux Server
Source: Internet
Author: User
Linux Server debugging program tips-general Linux technology-Linux programming and kernel information, the following is a detailed description. I am definitely a cainiao. Now I want to write down my program debugging experience and learn from it later.
1. Many times, it is relatively simple to look at other people's programs, but the compiler keeps reporting errors when it is changed.
2. All virtual functions must be implemented. Otherwise, an error is returned, for example, undefined reference to vtable.
3. The intermediate files generated during the compilation process must be deleted. Otherwise, even if the source program is modified, Errors still occur when link or the execution file is generated.
4. errors are often reported for no reason. For example, "calling fdopen: Bad file descriptor" usually occurs when the gch file was last compiled and deleted (I do not know why)
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