www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/14/09:38:21

Message-Id: <m0yw5En-000S4NC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: whams AT xs4all DOT nl (whams), djgpp AT delorie DOT com
Date: Tue, 14 Jul 1998 10:43:30 +0000
MIME-Version: 1.0
Subject: Re: compiling C++ source on RHIDE
In-reply-to: <6odubk$lvo$1@news2.xs4all.nl>

whams AT xs4all DOT nl (whams) wrote:

> Salvador Eduardo Tropea (SET) (salvador AT inti DOT gov DOT ar) wrote:
> : whams AT xs4all DOT nl (whams) wrote:
> : 
> : At first RHIDE *is* a C++ program and RHIDE *is* compiled from RHIDE 
> : so as you can figure out is something with your setup.
> 
>   Yes, that's what I think.
>  
> : >    I've been happily using RHIDE (recently v. 1.4.5) under DOS620
> : >    to compile *.c source, but now that I'm also trying my hand at
> : >    C++ RHIDE simply refuses to use GXX as the compiler for *.cc
> : 
> : gxx is not needed at all, gcc can do the right stuff without 
> : problems.
> 
>   OK
>  
> : >    source files, bailing out on '#include <iostream.h>' with several
> : >    "ERROR: parse error before '__extension__' " messages.
> : 
> : What lines? is that the textual message?
> 
>   Yes, see the Bug Report below.
[snip]
>   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;
^^^^^^^^^^^^  Is that BorlandC 5.0?

>   E:\BP\BIN;C:\BIN\RSX\BIN;E:\PERL\BIN;
>   E:\GNU\BIN
^^^^^^^^ And here DJGPP. Please put DJGPP before Borland C or other 
compilers. In fact I'll suggest you to put it after win\command

> 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
^^^^^^ Be carefull with it 4DOS have some drawbacks try to avoid it 
if you face any abnormal behavior.

> 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> __DJGPP_MINOR=1 - e:/gnu/tmp/RHfaaaaa\ccaaxkfl
> GNU CPP version 2.7.2.1 (80386, BSD syntax)
^^^^^^^^ Looks like you have the preprocessor from 2.7.2.1 and the 
compiler from 2.8.1. Did you installed 2.8.1 over 2.7.2.1? If that's 
the case first remove ALL the 2.7.2.1 stuff and then reinstall 2.8.1. 
And read the readmes included in 2.8.1.

> 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.).

That's strange because you have some problems, I guess you mean: If I 
use gxx from the command line all works, if I use gcc from RHIDE it 
fails. That have much more sense because you have a mix of 2.7.2 and 
2.8.1 tools in your system.

Greetings, SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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