www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/24/13:39:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Sender: cwilson AT ece DOT gatech DOT edu
Message-ID: <37498E94.79D9EFE@ece.gatech.edu>
Date: Mon, 24 May 1999 13:38:28 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.6 [en] (X11; U; HP-UX B.10.20 9000/777)
X-Accept-Language: en
MIME-Version: 1.0
To: earnie_boyd AT yahoo DOT com
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: gdb + cygwin
References: <19990524170118 DOT 23881 DOT rocketmail AT web114 DOT yahoomail DOT com>

Earnie Boyd wrote:
<snip>

> Hi Chuck,
>
> I've seen this when I have a pointer reference that isn't being referenced
> correctly.  Perhaps a prototype is incorrect or not specified.  Perhaps you
> have a pointer becoming an integer or an integer becoming a pointer, either way
> you're in trouble.
>
> Use the -Wall switch on the compilation and don't ignore the warnings.  If it
> has to do with a pointer, it's an ERROR not a WARNING.

Okay, I tried this:
    gcc -Wall -c smain.c ===> no errors
    gcc -Wall -c gaaout.c ===> a few errors having to do with a return (no args)
in a function that isn't supposed to return void. After I fixed 'em,

    gcc -Wall -c gaaout.c ===> no errors
    gcc -o smain smain.o gaaout.o ===> no errors

execute `smain' ==> core dump. sigh.

Thanks,
Chuck



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019