delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/27/02:04:27

Date: Mon, 27 Nov 2000 08:47:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: =?iso-8859-1?B?R2FicmllbCBGcvxt?= <gabynf AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Problems with stdin, stdout and stderr
In-Reply-To: <F267kO22ZhCl8aii08N0000558e@hotmail.com>
Message-ID: <Pine.SUN.3.91.1001127084715.15394K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 26 Nov 2000, =?iso-8859-1?B?R2FicmllbCBGcvxt?= wrote:

> I downloaded Allegro but I can't install it. When i run "make", it tells me 
> that there is an undefined reference to "__dj_stderr" in asmdef.c . Then I 
> made a simple program using "#include <stdio.h> - fprintf(stdout, "Hello 
> world!");", an the same thing happened: "undefined reference to 
> __dj_stdout".

I'm guessing that you have an old or a corrupted version of the DJGPP
library.  __dj_stderr and __dj_stdout are defined by two library
modules.

Please try the following command and tell what it prints:

  nm -A c:/djgpp/lib/libc.a | c:\windows\command\find.exe "__dj_stderr"

Another possibility is that you are linking with a non-DJGPP library.
Did you per chance install RSXNTDJ or MinGW on that machine?  If so,
make sure you are not linking DJGPP programs with their libraries (you
need to tinker with environment variables which tell the compiler
where to look for libraries).

- Raw text -


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