Mail Archives: djgpp/2000/10/09/23:46:32
Hello Andris.
I tried to install your binaries. I installed it on /usr/local.
Something went wrong: If I try to compile a simple Hello World program,
using
$ dos-g++ -c -g ./hello.C ./hello.o
I get
dos-g++: ./hello.o: No such file or directory
cpp: unrecognized option `-remap'
cpp: djgpp.ver: No such file or directory
Or, if I try with
$ g++ -c -g ./hello.C ./hello.o -b i586-pc-msdosdjgpp
I get
g++: ./hello.o: No such file or directory
In file included from ./hello.C:0:
/usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/djgpp.ver:1: No include
path in which to
find sys/version.h
./hello.C:3: No include path in which to find iostream.h
Also, I tried to compile the binaries by myself:
Using djcrx203.zip and building binutils and gcc under djgpp/cross:
First I applied the patch to binutils and installed binutils and gcc as
a native compiler
Then, I configured binutils with the --target=i586-pc-msdosdjgpp and
--prefix=/usr/local
options and installed with no problem
Finally, configured gcc with the above --target and --prefix options;
edited the makefile
for not do libgcc1-test,
ran make and after a few hours of compile time, I got this error:
../../../gcc-2.95.2/libiberty/pexecute.c: In function `pexecute':
../../../gcc-2.95.2/libiberty/pexecute.c:153: `spawnvp' undeclared
(first use in this function)
../../../gcc-2.95.2/libiberty/pexecute.c:153: `spawnv' undeclared (first
use in this function)
../../../gcc-2.95.2/libiberty/pexecute.c:200: warning: assignment
discards qualifiers from pointer target type
Please help!
I hope to can either fix the installation of your binaries, or compile
my own. ;-)
Thanks for your support.
Andris Pavenis wrote:
>
> I think rather many poeple have done this. For DJGPP I'm using gcc-2.95.2
> which I built under Linux with such cross-compiler ...
>
> You can get my binaries at:
> http://www.lanet.lv/~pavenis/djgpp/linux-x-djgpp/
>
> Andris
- Raw text -