delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/26/08:53:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp-workers AT delorie DOT com
Subject: Re: lfind() issue
Date: Wed, 26 Jan 2005 15:52:20 +0200
User-Agent: KMail/1.7.91
References: <41F78AEF DOT 7070808 AT igd DOT fhg DOT de>
In-Reply-To: <41F78AEF.7070808@igd.fhg.de>
MIME-Version: 1.0
Message-Id: <200501261552.20222.pavenis@latnet.lv>
X-Virus-Scanned: by amavisd-new at fgi.fi
Reply-To: djgpp-workers AT delorie DOT com

On Wednesday 26 January 2005 14:19, Juan Manuel Guerrero wrote:
> I have not followed the development of lfind() at all so I do not know
> if this is already
> known but it should be noticed that the compilation of djgpp fails due
> to the missing
> inclusion of the appropriate header with the following error message:
>
> gcc ... -c lfind.c
> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
> lfind.c: In function `l_general':
> lfind.c:34: warning: implicit declaration of function `memcpy'
> make.exe[3]: *** [lfind.o] Error 1
> make.exe[2]: *** [all_subs] Error 2
> make.exe[1]: *** [all] Error 2
> make.exe: *** [subs] Error 2
>

Older GCC versions does not detect that.

gcc-3.3.5 compile it Ok (tested with gcc-3.3.5 cross-compiler from Linux)
and run immeadiatelly after that into trouble due to missing hcreate.c in the
same directory.

As far as I remember gcc-3.4.3 detects missing include in such situation

Andris

PS. One should expect much more fun with gcc-4.0.0 when it will come
out ...

- Raw text -


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