_ D_GUN_SOURCE ?? And a few small issues

Source: Internet
Author: User
_ D_GUN_SOURCE ?? And a few minor issues-general Linux technology-Linux programming and kernel information, the following is a detailed description. Haha! I just got started with linux C language programming! Thank you!

Besides, under F7, gcc-g-D_GUN_SOURCE dd. c-o hello
# Include

Static void fun (void)
{
Char * p = 0;
* P = '! ';
}

Int main ()
{
Fun ();
Return 0;
}

This program is incorrect, but the following occurs when you use ls-l core (ls: cannot access core: No file or directory) gdb./hello core
========================================================== ================
GNU gdb Red Hat Linux (6.6-15. fc7rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
Welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu "...
Using host libthread_db library "/lib/libthread_db.so.1 ".
/Home/k/Desktop/c/core: No such file or directory.
(Gdb)

========================================================== ================

[ This post was last edited by yorktown]

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.