X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 9 May 2006 12:30:21 -0500 From: JT Williams To: djgpp AT delorie DOT com Subject: Re: incompatible implicit declaration of built-in function... Message-ID: <20060509173020.GA12724@darwin.sfbr.org> References: <446093bc$0$12932$91cee783 AT newsreader02 DOT highway DOT telekom DOT at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <446093bc$0$12932$91cee783@newsreader02.highway.telekom.at> User-Agent: Mutt/1.4.2.1i X-Brightmail-Tracker: AAAAAA== Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > warning: incompatible implicit declaration of built-in function 'memset' Beginning with some recent version of gcc, my programs (even "hello.c") would not compile without many such warnings about some function or other. I searched the gcc docs and added '-fno-builtin' to the gcc invocation to suppress the use of builtin prototypes. -- j On Tue|2006.05.09, Florian Xaver wrote: >Hi! > >example: > >gcc -O3 -funroll-loops -Iinclude -c src/xlib/conlib.c -o obj/xlib/conlib.o >src/xlib/conlib.c: In function 'ClearConsole': >src/xlib/conlib.c:103: warning: incompatible implicit declaration of >built-in fu >nction 'memset' >src/xlib/conlib.c: In function 'CursorMoveRight': >src/xlib/conlib.c:122: warning: incompatible implicit declaration of >built-in fu >nction 'memcpy' >src/xlib/conlib.c:124: warning: incompatible implicit declaration of >built-in fu >nction 'memset' >src/xlib/conlib.c: In function 'PutChar': >src/xlib/conlib.c:155: warning: incompatible implicit declaration of >built-in fu >nction 'memcpy' >src/xlib/conlib.c:158: warning: incompatible implicit declaration of >built-in fu >nction 'memset' >src/xlib/conlib.c: In function 'NewConsole': >src/xlib/conlib.c:173: warning: incompatible implicit declaration of >built-in fu >nction 'memset' > > >What could be the reason? >bye >-- >Florian Xaver > >Dr-DOS Wiki >SWORD - a nice GUI library for DOS/DJGPP > > > > > > >