delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/30/17:30:06

From: "J. L." <jlsgarrido AT inbox DOT lv>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: conio.h bug?
Date: Mon, 30 Jun 2003 16:24:50 -0500
Lines: 66
Message-ID: <bdq9tv$vab4i$1@ID-143309.news.dfncis.de>
References: <bdq8md$hjv$1 AT newsreader1 DOT netway DOT at>
NNTP-Posting-Host: 200.34.143.28
X-Trace: fu-berlin.de 1057008384 32844946 200.34.143.28 (16 [143309])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Once upon a while, News Reader <nospam AT aol DOT com>
wrote in bdq8md$hjv$1 AT newsreader1 DOT netway DOT at:

> 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;
>   }
>

This is a bit odd. You invoke no function. Some reason for include
conio.h? OTOH, are you sure that this is your real code? On my
system, ther are no problem:

c:\test\type testcon.c
#include <conio.h>

int main(void){
  return 0;
}

c:\test\gcc -c testcon.c


>
> 3) Line 74 in header file:
>
>   int gettext(int _left, int _top, int _right, int _bottom,
> void *_destin);
>
>   Remark: The error does not occur if line 74 in "conio.h" is
> disabled.

Don't do that. Is a bad idea to edit any header file provided by
the compiler.

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

No idea.

Regards
-- 
José L. Sánchez Garrido


- Raw text -


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