delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/08/19/16:30:08

From: James <gogNOSPAMet4me AT yaNOSPAMhoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: question:how to set rhide for c++
Date: Mon, 19 Aug 2002 20:16:50 +0000 (UTC)
Organization: Your Company
Lines: 47
Message-ID: <ajrjni$g9d$3@debian.bentium.com>
NNTP-Posting-Host: 202.115.22.194
X-Trace: debian.bentium.com 1029788210 16685 202.115.22.194 (19 Aug 2002 20:16:50 GMT)
X-Complaints-To: usenet AT news DOT bentium DOT com
NNTP-Posting-Date: Mon, 19 Aug 2002 20:16:50 +0000 (UTC)
User-Agent: Xnews/5.03.24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,here i have a question:
I unzip the djgpp zip files,and use a dos .bat file to run it:
@//////////////////////
set DJGPP=.\djgpp.env
set path=.\bin;%PATH%
rhide.exe
@//////////////////////

And i start my test program a.cpp:

/////////////////////////////////////////////
#include<iostream>
using namespace std;
int main(){
    cout<<"This is a test!"<<endl;

}
/////////////////////////////////////////////

I use the rhide ide to make it,here is the error message:

//////////////////////
 Compiling: a.cpp
 no errors
 Creating: a.exe
 c:/Documents and Settings/djgpp/bin/ld.exe: cannot open c++: No such 
file or directory (ENOENT)
 Error: collect2: ld returned 1 exit status
 There were some errors
//////////////////////

Then i select the dos shell to run it use the command:
    gxx a.cpp -Wall -o a.exe
it works well.My question is,how shall i set the options to make the 
ide(rhide) to use gxx.exe instead of gcc.exe to compile my program?


Another question(Maybe off-topic here):
I want to get the error message to a textfile,I use the command:
gcc a.cpp >error.txt
but nothing happened,I get only a 0 byte file.What's wrong?Could you help 
me with it?

Thanks in advance.

Jimmy

- Raw text -


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