delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/01/12:34:47

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: stderr problem ...
Date: Mon, 01 Sep 1997 14:10:42 +0200
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 39
Message-ID: <340AB0C2.AA2B48BD@LSTM.Ruhr-UNI-Bochum.De>
References: <340AA29F DOT C2AD16EA AT lsil DOT com>
NNTP-Posting-Host: c64.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
CC: jsamoun AT lsil DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jacques SAMOUN wrote:
> 
> Hi,
> 
> my program uses the following " fprintf (stderr, "blablabla...")", which
> is
> trivial. However, when building with djgpp, the linker complains as :
> 
> gcc -g -DMSDOS -I. -c edown.c
> gcc -g -DMSDOS -o edown edown.o
> :'edown.o: In function `usage
> 'edown.c:89: undefined reference to `_iob
[...]
> Has anybody an idea here ?
> 
> Many thnx,
> Jacques.
> 

This is probably due to a mix of 1.12 Header files, and/or
1.12 compiler and 2.x library. I'm not sure how to correct 
this fool-proof except re-installing djgpp from scratch.
Yes, you can grep /djgpp/include/*.h for iob and replace only 
those files, but I wouldn't rely on that.

-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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