delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/01/30/02:34:00

Date: Sun, 30 Jan 2000 09:30:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
Subject: Re: DJGPP under linux
In-Reply-To: <gt2t68.ra1.ln@localhost.localdomain>
Message-ID: <Pine.SUN.3.91.1000130093002.17273E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 28 Jan 2000, Anders Bo Rasmussen wrote:

> > > $ i386-pc-msdosdjgpp-g++ halloworld.cpp 
> > > /usr/local/i386-pc-msdosdjgpp/bin/ld: cannot open -lstdc++: No such file or directory
> > 
> > I don't think that the HOWTO covers C++ compiler installation.
> > 
> > Did you install the C++ libraries?  You need to extract libstdcxx.a from 
> > gppNNNb.zip and install it under the name libstdc++.a in the same 
> > directory where the DJGPP libc.a is kept.  You also need to install the 
> > C++ headers from gppNNNb.zip and to build the cc1plus cross-compiler.
> 
> Is there any place witch says exactly how I do this?
> 
> > One of the steps in the HOWTO says to do this:
> > 
> >   $ cd ~/djgpp/cross/src/stub
> >   $ gcc -O stubify.c -o /usr/local/i586-pc-msdosdjgpp/stubify
> > 
> > Did you do that?  Do you have `stubify' in /usr/local/i586-pc-msdosdjgpp/?
> > If so, perhaps you need to copy it to some other directory (the `bin' 
> > subdirectory under /usr/local/i586-pc-msdosdjgpp/?).
>  
> I did it with i386 instead of i586 and the file stubify is in
> /usr/local/i386-pc-msdosdjgpp. I tried to move it to the bin directory, and
> now gcc works.
> 
> > Btw, why do you say /usr/local/i386-pc-msdosdjgpp/bin/ when the HOWTO 
> > says /usr/local/i586-pc-msdosdjgpp/?  Perhaps this is part of the 
> > reason(s) for your problem(s)?
> 
> Because. I need to compile to 80486. But I have also tried to do exactly what
> linux-x-djgpp.html and that made the same problem.

Seems like the cross-compiler HOWTO needs to be updated.  At least as
far as stubify is concerned, the -o switch is IMHO incorrect: the
executable should go into the bin subdirectory.  Also, adding the info
about C++ would be a good idea.

- Raw text -


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