Mail Archives: djgpp/2002/08/19/18:32:00
From: | Jimmy <goget4me AT yahoo DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | question about set rhide for c++
|
Date: | Mon, 19 Aug 2002 20:42:36 +0000 (UTC)
|
Organization: | Your Company
|
Lines: | 46
|
Message-ID: | <ajrl7r$gmn$1@debian.bentium.com>
|
NNTP-Posting-Host: | 202.115.22.194
|
X-Trace: | debian.bentium.com 1029789756 17111 202.115.22.194 (19 Aug 2002 20:42:36 GMT)
|
X-Complaints-To: | usenet AT news DOT bentium DOT com
|
NNTP-Posting-Date: | Mon, 19 Aug 2002 20:42:36 +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 -