bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segmentation fault was not produced in a buggy C Program


From: Chin Hui
Subject: Segmentation fault was not produced in a buggy C Program
Date: Wed, 24 Jul 2002 05:23:26 -0700 (PDT)

GNU make version 3.79.1
gcc version 2.96

the following statement was used in a simple C program
for debugging purposes in a uni. 

if(ReadInWord[0]='n')
   fprintf("There are no words entered")

i've used a Makefile to compile it with gcc -w -c -g
there should be a segmentation fault reported.
I did not get such report on my laptop.  Using the
same file I've got the segmentation fault reported in
university with the same version of gcc and make. 
Why?



=====
from,
Chin Hui 
 



__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

Attachment: Makefile
Description: Makefile

Attachment: bug1.c
Description: bug1.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]