Mail Archives: djgpp/1997/06/07/20:49:27
In article <5na6sk$c7o AT news DOT epcc DOT edu>,
Jason M. Daniels <bd733 AT rgfn DOT epcc DOT edu> wrote:
>David Mayor (davidm AT morfeo DOT upc DOT es) wrote:
>> What is this error: OS3.c(.text+0x8e): undefined reference to `_iob'
>> When I link a Borland File with grx20 and bcc2grx, this error is
>> returned. What is the solution for this problem???
>
>Apparently, _iob is a library function in Borland that is not present in
>the DJGPP libraries. Perhaps if you post a little more information, an
>alternate function can be suggested.
>
_iob is the array of FILE structs that Borland's stdio allocates from.
_iob[0] thru _iob[2] represent stdin, stdout, & stderr.
But, DJGPP uses specific FILE structs for those, namely __dj_stdin, ...etc.
Solution... I dunno. I guess you could do:
FILE *_iob[3] = { stdin, stdout, stderr };
but that's kinda yuckers.
Brennan
--
brennan AT rt66 DOT com | "Elmo not crazy! INSTITUTION! You the one who crazy!
Riomhchlaraitheoir| INSTITUTION! You driving Elmo crazy! INSTITUTION!"
Rasterfarian | <http://brennan.home.ml.org> -O
- Raw text -