From: brennan AT mack DOT rt66 DOT com (Brennan "Bas" Underwood) Newsgroups: comp.os.msdos.djgpp Subject: Re: Please help me: OS3.c(.text+0x8e): undefined reference to `_iob'?? Date: 7 Jun 1997 08:08:18 -0600 Organization: Acid Brain Lines: 26 Distribution: world Message-ID: <5nbq0j$kfo$1@mack.rt66.com> References: <33989208 DOT 1D62 AT morfeo DOT upc DOT es> <5na6sk$c7o AT news DOT epcc DOT edu> NNTP-Posting-Host: mack.rt66.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <5na6sk$c7o AT news DOT epcc DOT edu>, Jason M. Daniels 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 | -O