delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/30/19:51:27

Message-ID: <20030630235040.31534.qmail@web13003.mail.yahoo.com>
Date: Mon, 30 Jun 2003 16:50:40 -0700 (PDT)
From: Thomas Tutone <thomas8675309 AT yahoo DOT com>
Subject: Re: conio.h bug?
To: djgpp AT delorie DOT com
MIME-Version: 1.0

"News Reader" <nospam AT aol DOT com> wrote:

> Probable bug related to "conio.h" header file:
> 
> 1) Compiler error received:
> 
>   In file included from test.c:1:
>   c:/ab/djgpp/include/conio.h:74: error:
>     nonnull argument references non-pointer operand 
> (arg 1, operand 1)
> 
> 2) Source causing compile error:
> 
>   #include <conio.h>
> 
>   int main()
>   {
>     return 0;
>   }
> 
> 
> 3) Line 74 in header file:
> 
>   int gettext(int _left, int _top, int _right, int 
> _bottom, void *_destin);
 
[snip]

> 4) System used:
>     WinXP, DJGPP with gcc3.3
>

I've duplicated your error.  At first I didn't believe
you, because I compiled your test on a machine with XP
Pro with no problem.  But then I realized I was still
using GCC version 3.2.1.  I reinstalled djgpp using
the latest sources, including GCC version 3.3, and now
I get the same error you do:

C:\djgpp\mystuff>gcc -W -Wall -pedantic -o conerr.exe
conerr.c

In file included from conerr.c:1:
c:/djgpp/include/conio.h:74: error: nonnull argument
references non-pointer operand (arg 1, operand 1)
c:/djgpp/include/conio.h:74: error: nonnull argument
references non-pointer operand (arg 1, operand 1)

I don't think the error is in conio.h necessarily - it
seems more likely that some djgpp-specific patch was
inadvertently omitted in the latest gcc build for
djgpp.

Can someone else with the latest build of djgpp
installed try the test case as well and see if they
are getting the same error?

Best regards,

Tom
















__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

- Raw text -


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