delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/18/20:13:13

Date: Thu, 18 Sep 1997 17:11:08 -0700 (PDT)
Message-Id: <199709190011.RAA25542@adit.ap.net>
Mime-Version: 1.0
To: <levity AT minn DOT net>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: I need alloc.h for DJGPP

At 02:09  9/18/1997 GMT, levity AT minn DOT net wrote:
>I have some code that was written in Borland turbo c++ and I need to
>compile it under DJGPP now and I cannot find a alloc.h for my compiler. 
>Does any one have this header file or know where I can get it?
In Borland C[++], alloc.h contained the prototypes for malloc(), free(),
etc. These functions are in stdlib.h in DJGPP. So if you use #include
<stdlib.h>, you should get equivalent functionality.

In Borland code, watch out for "near" and "far" stuff which is meaningless
and makes the compiler complain in GCC. FAQ section 17.7 talks about ways of
dealing with this. If you knew that already, sorry to be patronizing.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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