Date: Sun, 8 Jun 1997 12:42:09 -0400 (EDT) Message-Id: <199706081642.MAA18239@delorie.com> From: DJ Delorie To: brennan AT mack DOT rt66 DOT com CC: djgpp AT delorie DOT com In-reply-to: <5nbq0j$kfo$1@mack.rt66.com> (brennan@mack.rt66.com) Subject: Re: Please help me: OS3.c(.text+0x8e): undefined reference to `_iob'?? Precedence: bulk > _iob is the array of FILE structs that Borland's stdio allocates from. > _iob[0] thru _iob[2] represent stdin, stdout, & stderr. No, _iob[] is the djgpp 1.12 method for referencing standard FILE* structures. > 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. This program might crash, because the contents and sizes of the structures has changed in V2, so _iob[1] is not the right pointer (pre-compiled libraries won't read the new headers).