Re: core dump

"Overlord Q" <[email protected]> Wed, 04 Jun 2003 09:40:43 -0500
Newsgroups gmane.org.user-groups.aclug.linux-help
Message-ID <[email protected]>
I can't even get that to compile:

ovrlrdq@remnetworks:~$ gcc bob.c
bob.c:2: two or more data types in declaration of `main'
ovrlrdq@remnetworks:~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

>From: Sudharsha Wijesinghe <adithya111-/[email protected]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [linux-help] core dump
>
>I wrote the following code
>int void main()
>{
>int buff[4096],i;
>for(i=0;i<8000;i++)
>buff[i]=i;
>return 0;
>}
>and compliled it with gcc
>executable file created.
>when I run it
>#./a.out
>I would get a segment fault
>it does not create a core dump.
>Does any one know why it is?
>Thanks in advance
>Sudharsha.

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-- This is the [email protected] list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi