Mail Archives: djgpp/2003/06/30/18:30:40
From: | "News Reader" <nospam AT aol DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: conio.h bug?
|
Date: | Tue, 1 Jul 2003 00:25:05 +0200
|
Organization: | UTA/netway (Customer)
|
Lines: | 95
|
Message-ID: | <bdqdft$k9r$1@newsreader1.netway.at>
|
References: | <bdq8md$hjv$1 AT newsreader1 DOT netway DOT at> <bdq9tv$vab4i$1 AT ID-143309 DOT news DOT dfncis DOT de>
|
NNTP-Posting-Host: | pat-ei.lucent.wellcom.at
|
X-Trace: | newsreader1.netway.at 1057012029 20795 195.230.174.18 (30 Jun 2003 22:27:09 GMT)
|
X-Complaints-To: | abuse AT netway DOT at
|
NNTP-Posting-Date: | 30 Jun 2003 22:27:09 GMT
|
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
|
Replies to your comments:
> This is a bit odd. You invoke no function.
I have narrowed the source down to find the part causing trouble,
so I have deleted almost anything.
> Some reason for include conio.h?
Sure, I needed part of its screen-write functions.
>OTOH, are you sure that this is your real code?
Yes - amongst other attempts to avoid the error messages.
>On my system, ther are no problems.
Are you using the new CGG 3.3 version?
(My old version of DJGPP was working fine, by the way.)
> Don't do that. Is a bad idea to edit any header file provided by the
compiler.
I had to - in order to compile properly.
Thank you.
"J. L." <jlsgarrido AT inbox DOT lv> wrote in message
news:bdq9tv$vab4i$1 AT ID-143309 DOT news DOT dfncis DOT de...
> 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 -