delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/13/17:45:25

From: sparhawk AT eunet DOT at (Gerhard Gruber)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: UNIX commands
Date: Mon, 13 Jul 1998 21:38:26 GMT
Organization: Customer of EUnet Austria
Lines: 27
Message-ID: <35ab7c1a.1236337@news.Austria.EU.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980713112311 DOT 323Q-100000 AT is>
NNTP-Posting-Host: e250.dynamic.vienna.at.eu.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Destination: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Mon, 13 Jul 1998 11:23:58 +0300 (IDT):

>Then how come you still have problems with `cat' and such likes?

That was at the time I wrote my original mail After that I managed to compile
DJGPP without any problems (at least none that doesn't come from that thing
that calls itself an OS).

>I really don't see any problem in asking people to download several
>files instead of one.  After all, DJGPP is already a lot of separate
>files, not a single large one.

OK. Now I have all of them together (at least I hope so).

--
Bye,
   Gerhard

email: sparhawk AT eunet DOT at
       g DOT gruber AT sis DOT co DOT at

Spelling corrections are appreciated.
e, so it can't be DJGPP (v.2.0.1 with the new GCC-2.8.1
: >    libraries etc.).
: > 
: >    On clicking RUN in RHIDE I do notice, that RHIDE calls GCC and not
: >    GXX, whether or not I specify '-x c++' as a compiler option.
: 
: That's because RHIDE doesn't need gxx at all.
:  
: >    Anyone got a clue as to what I'm missing?
: 
: Try filling a bug report (Alt-Space menu), it will compile a small C 
: program and a small C++ program in your machine. Post the results.
: 
: SET 

  Here's the bug report:
This is a bug report for RHIDE Version 1.4.5 (May 11 1998 23:00:17)
I am running MS-DOS 7.10

Important environment variables:
PATH=C:\;C:\WIN\COMMAND;C:\WIN;C:\DOS\4DOS60;C:\DOS\DOS620;C:\DOS\DOS620\UT;
  C:\WINUT\NU;C:\BIN\TSE;C:\DOS\DOS620\BAT;F:\BC5\BIN;F:\CBUILDER\BIN;
  E:\BP\BIN;C:\BIN\RSX\BIN;E:\PERL\BIN;E:\GNU\BIN
DJGPP=E:\GNU\DJGPP.ENV
DJDIR=e:/gnu
LFN=Y
INFOPATH=e:/gnu/info;e:/gnu/info;e:/gnu/gnu/emacs/info
LOCALEDIR=
LANGUAGE=
SHELL=
COMSPEC=C:\DOS\4DOS60\4DOS.COM
DJSYSFLAGS=

Here is the output from a sample compilation and link for C
executing: 
echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c -
Reading specs from e:/gnu/lib/specs
gcc version 2.8.1
 e:/gnu/bin/cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D
__DJGPP_MINOR=1 - e:/gnu/tmp/RHfaaaaa\ccaaxkfl
GNU CPP version 2.7.2.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 e:/gnu/include
 e:/gnu/contrib/grx23/include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.7.2.1/include
 /usr/include
End of search list.
 e:/gnu/bin/cc1.exe e:/gnu/tmp/RHfaaaaa\ccaaxkfl -quiet -dumpbase -.c -version -o e:/gnu/tmp/RHfaaaaa\ccbaxkfl
GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1.
 e:/gnu/bin/as.exe -v -o e:/gnu/tmp/RHfaaaaa\cccaxkfl e:/gnu/tmp/RHfaaaaa\ccbaxkfl
GNU assembler version 2.8.1 (i386-pc-msdosdjgpp)
 e:/gnu/bin/ld.exe -o /dev/null e:/gnu/lib/crt0.o -Le:/gnu/lib -Le:/gnu/contrib/grx23/lib -Le:/gnu/lib/gcc-lib/djgpp\2.81 -Le:/gnu/bin -Le:/gnu/lib -v e:/gnu/tmp/RHfaaaaa\cccaxkfl -Tdjgpp.djl -lgcc -lc -lgcc
GNU ld version 2.8.1 (with BFD 2.8.1)
 e:/gnu/bin/stubify.exe -v /dev/null
Warning: input file is not COFF or stubbed COFF
.exe: No such file or directory (ENOENT)
stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie

End of the sample

Here is the output from a sample compilation and link for C++
executing: 
echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c++ -
Reading specs from e:/gnu/lib/specs
gcc version 2.8.1
 e:/gnu/bin/cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=8 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__
GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 -D__EXCEPTIONS - e:/gnu/tmp/RHfaaaaa\ccaygmfl
GNU CPP version 2.7.2.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 e:/gnu/lang/cxx
 e:/gnu/include
 e:/gnu/contrib/grx23/include
 /usr/local/lib/g++-include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.7.2.1/include
 /usr/include
End of search list.
 e:/gnu/bin/cc1plus.exe e:/gnu/tmp/RHfaaaaa\ccaygmfl -quiet -dumpbase -.cc -version -o e:/gnu/tmp/RHfaaaaa\ccbygmfl
GNU C++ version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1.
 e:/gnu/bin/as.exe -v -o e:/gnu/tmp/RHfaaaaa\cccygmfl e:/gnu/tmp/RHfaaaaa\ccbygmfl
GNU assembler version 2.8.1 (i386-pc-msdosdjgpp)
 e:/gnu/bin/ld.exe -o /dev/null e:/gnu/lib/crt0.o -Le:/gnu/lib -Le:/gnu/contrib/grx23/lib -Le:/gnu/lib/gcc-lib/djgpp\2.81 -Le:/gnu/bin -Le:/gnu/lib -v e:/gnu/tmp/RHfaaaaa\cccygmfl -Tdjgpp.djl -lgcc -lc -lgcc
GNU ld version 2.8.1 (with BFD 2.8.1)
 e:/gnu/bin/stubify.exe -v /dev/null
Warning: input file is not COFF or stubbed COFF
.exe: No such file or directory (ENOENT)
stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie

End of the sample



My problem is the following:
============================

There may be something wrong with my RHIDE 1.4.5 setup, although
plain C-source compiles without a problem.

On trying to compile/make a C++ source file, compilation stops with
three error messages, all ending with:
" ERROR: parse error before '__extension__' "

1>  e:/gnu/lang/cxx/_G_config.h (20)
2>  e:/gnu/lang/cxx/iostream.h (91)
3>  e:/gnu/lang/cxx/iostream.h (208)

The message window indicates, that the source line apparently triggering
these errors is the line: " #include <iostream.h> "

If I compile the same source directly from the commandline. everything
works all right, so the problem doesn't seem to be with my DJGPP setup
(DJGPP v.201 with the new GCC-2.8.1 libraries etc.).

I hope you can point me to where something went wrong.
-- 

                wim                                       =
                                                          =
             w.j.m. van der hamsvoord                     =
    - - - whams AT xs4all DOT nl - = - - - - - - - - - - - - - - = - - - - -
                                                          =

- Raw text -


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