www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/04/19:21:45

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Christopher Faylor <cgf AT cygnus DOT com>
Message-ID: <19990204142059.A21885@cygnus.com>
Date: Thu, 4 Feb 1999 14:20:59 -0500
To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>, Chris <Christine DOT Pourcelot AT inria DOT fr>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Troubles with Termcap-1.3
References: <36B99D5B DOT 7900F7DB AT inria DOT fr> <Pine DOT HPP DOT 3 DOT 96 DOT 990204104313 DOT 5701A-100000 AT hp2 DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0
X-Mailer: Mutt 0.93i
In-Reply-To: <Pine.HPP.3.96.990204104313.5701A-100000@hp2.xraylith.wisc.edu>; from Mumit Khan on Thu, Feb 04, 1999 at 11:02:07AM -0600

On Thu, Feb 04, 1999 at 11:02:07AM -0600, Mumit Khan wrote:
>On Thu, 4 Feb 1999, Chris wrote:
>
>> I need Termcap so I get it and I'm trying to build it on Windows Nt with
>> Cygwin
>> I made the changes in Makefile(add -D_STRICT_ANSI), but I got a parse
>> error :
>> gcc -c  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 
>> -DTERMCAP_FILE=\"/etc/termcap\" -I. -I. -g tparam.c
>> In file included from tparam.c:29:
>> C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\string.h:54:
>> parse error before `('
>> C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\string.h:54:
>> warning: conflicting types for built-in function `memcpy'
>> C:\cygnus\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\string.h:54:
>> parse error before `const'
>> make: *** [tparam.o] Error 1
>> What am I doing wrong ?
>
>But you didn't define _STRICT_ANSI in the right place! Look at the compile 
>line above and you don't see -D_STRICT_ANSI anywhere.
>
>Look for the 
>
>  DEFS = -Dfoo....
>
>line in the Makefile and add the -D_STRICT_ANSI there.
>  
>  DEFS = -D_STRICT_ANSI -Dfoo....
>
>and recompile.
>
>The other solution is simply ifdef out 3 lines around the top of
>tparam.c which redefines bcopy in terms of memcpy in your sources and
>recompile.

The other solution is to use the termcap library that comes with
B20.1...

cgf

- Raw text -


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