www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/02/06:49:35

From: arlindo AT niteroi DOT gsfc DOT nasa DOT gov (Arlindo da Silva)
Subject: Re: Where is malloc() defined?
2 Jan 1998 06:49:35 -0800 :
Message-ID: <199801021432.JAA01367.cygnus.gnu-win32@woodmore.gsfc.nasa.gov>
References: <3 DOT 0 DOT 1 DOT 32 DOT 19980101214714 DOT 0069baa0 AT defiant DOT gsfc DOT nasa DOT gov>
Mime-Version: 1.0
To: joe DOT stevens AT gsfc DOT nasa DOT gov (Joe Stevens)
Cc: gnu-win32 AT cygnus DOT com

Joe,
> 
> I have just installed the latest gnu-win32. I was compiling a program and
> the compiler was unable to locate malloc.h. What header file is the
> malloc() defined.
> 

Since "malloc.h" is not really ANSI it was left out.
A workaround is to create a single line "malloc.h":

#include <stdlib.h>

-- 
Arlindo da Silva    
dasilva AT alum DOT mit DOT edu


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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