delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/21/04:57:03

Date: Fri, 21 Apr 2000 03:44:33 -0400 (EDT)
Message-Id: <200004210744.DAA16985@indy.delorie.com>
From: Eli Zaretskii <eliz AT delorie DOT com>
To: "Paul Edwards" <bin_kicker AT hotmail DOT com>
CC: djgpp AT delorie DOT com
In-reply-to: <20000420180610.97856.qmail@hotmail.com> (bin_kicker@hotmail.com)
Subject: Re: Problems with Loader Error
References: <20000420180610 DOT 97856 DOT qmail AT hotmail DOT com>
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

> From: "Paul Edwards" <bin_kicker AT hotmail DOT com>
> Date: Thu, 20 Apr 2000 18:06:10 GMT
> 
> I am trying to compile a simple c++ program, the infamous "Hello World" 
> program. However, when I try to compile the file, by typing:
> 
> gcc -o hello.exe hello.cc
> 
> the message I get is:
> 
> Loader Error (0025): cannot initialise.

This is a telltale sign of a Borland cpp.exe sitting on your PATH
before DJGPP's version.  (GCC finds it first and tries to run it
instead of its own cpp.exe, but Borland's cpp is a 16-bit DPMI program
that cannot run under 32-bit DPMI programs such as gcc.exe.)

Solution: change your PATH so that DJGPP's bin subdirectory appears
before Borland's.

- Raw text -


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