Four Common Problems in program development

Source: Internet
Author: User
Four Common Problems in program development-general Linux technology-Linux programming and kernel information. For details, refer to the following section. 0001
Debug core files in linux
Gdb
: Executable program that generates core dump due to an error.
: Name of the core dump file. The default value is "core"


0002
A. out obtained by gcc abc. c cannot be run.
./A. out

0003
Why is the error message "cout" not defined during c ++ compilation?
Add using namespace std after the include header file;

0004
The standard connection libraries used by the newly compiled gcc are all under/usr/local/lib, but how to add the default connection paths/usr/lib? (Except for adding-L/usr/local/lib at each compilation) (sakulagi, huhuuworm)
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/lib
Write ~ /. Bash_profile.
Add a simple method:
Add/usr/local/lib to/etc/ld. so. conf and run ldconfig once.

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.