Mail Archives: djgpp-workers/2000/01/30/02:34:00
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 -