delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/07:32:54

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>,
"Bradley Sammut" <bsammut AT ids DOT com DOT au>
Subject: RE:
Date: Sun, 30 Aug 1998 12:32:09 +0100
Message-ID: <000001bdd409$d3506f20$284d08c3@arthur>
MIME-Version: 1.0
Importance: Normal
In-Reply-To: <CA256670.000D0610.00@ntsvr01.ids.com.au>

> My name is Brad and I am a university student who is in the process of
> doing a course on c ++. I have been looking for a c++ compiler to use while
> I am doing the course. I am having a problem setting up the RHIDE
> environment to compile and link my programs. I haven't been able to create
> any exe files.

Can you compile using gpp at the dos prompt. If so, then it's a problem with your
RHIDE setup. Try typing "gpp test1.cpp -o test1.exe -g" at the directory where your
file is. If it creates a file called  test1.exe then you're doing something wrong
with RHIDE. Otherwise you've not set DJGPP up properly. Read the README file and the
FAQ!

>      When I try to run my program it comes back with the error" Program
> exit code : -1"
>      In the comments window there are three lines:
>
>      compiling test1.cpp
>      bad command or file name
>      no errors.
>   This looks OK but when I go to find the executable file it's not there. I
> am sure it is only a setup problem.
> I would appreciate it greatly if you could email me a few instructions on
> how to setup RHIDE so that it will execute and build simple C++ programs.
> Brad

RHIDE shouldn't need much setting up after you extract it to your DJGPP directory.
One thing that it a known "feature" is that if you have long filename support
enabled, RHIDE looks for the libstdcx library instead of libstdcxx when compiling c++
programs. There's a text file which tells you how to combat this:
gnu/gcc-2.81/problems.txt.

One of the criticisms with RHIDE is that it gets a little complex to use if you don't
use projects. If you load up your file with the FILE->OPEN menu option, you often
need to set the path of that file in the OPTIONS->DIRECTORIES->SOURCES menu option. A
little fiddly, I know. If compiling single files I usually compile at the DOS prompt
for that very reason. However, when creating multi-source files, RHIDE's projects are
truly invaluable.

HTH

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819

- Raw text -


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