Mail Archives: djgpp/1997/09/18/20:13:13
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 -