delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/28/23:54:35

Message-ID: <38699008.1D94B00E@sympatico.ca>
Date: Tue, 28 Dec 1999 23:37:29 -0500
From: BRAD MURPHY <bjmurphy AT sympatico DOT ca>
X-Mailer: Mozilla 4.05 [en]C-SYMPA (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Please help!
Reply-To: djgpp AT delorie DOT com

  Hi , how are you doing.  My name is Brad and I am having a lot of
problems using Rhide.  I posted this question to the djgpp message
board, but because you know what you talking about, and nobody
has been able to help me with this problem , I thought I
would e-mail the question to you also.  I hope you don't mind!


I know that many beginners cannot get their Djgpp and Rhide to work
properly, but reading through their questions and answers, as well as
the FAQ files that come with the programs is still not helping me at
all.  Do you know what I'm doing wrong?  Please help!
  I downloaded all the files that the zip picker told me I would need to

run c/c++ files with windows 95, and I unzipped them in c:\djgpp\
using a program that supports long file names.  Then I added

set DJGPP=C:\DJGPP\DJGPP.ENV
 set PATH=C:\DJGPP\BIN;%PATH%

to autoexec.bat.  When I go to the Rhide program after that and try to
run the hello world program, I create the project hello.gpr, and the
source file hello.c. I then type

#include <stdio.h>

int main()
{
  printf("Hello world!\n");
  exit(0);
}

into hello.c.  I have tried some different coding that should do the
same thing, and I have also tried saving the project as hello.mak and
the source file as hello.cpp.
  No matter what I do, I always get the same thing!  In the message
window when compiling it says

Compiling: hello.cpp         (or hello.c)
Bad command or file name
no errors

And then when I run the program it gives me the message

Program exit code: -1 (0xffffffff)

One thing that looks fishy to me is the line in autoexec.bat
                 set DJGPP=C:\DJGPP\DJGPP.ENV
djgpp.env isn't even in c:\djgpp.  After unzipping everything, its in
c:\djgpp\djdev202.
I don't know if this is the main problem or how to fix this, but it
doesn't look right to me!  Even after copying djgpp.env to the
c:\djgpp\ directory, I still get the same errors.

  I think the main problem has to do something with when
I compile it says BAD COMMAND OR FILE NAME
(as I stated above), but I don't know for sure and I
certainly don't know why it says that.

I've explained myself as well as possible, and I'm sorry about the
length of the question, but if you have any ideas I would love to hear
them.  I've read the FAQ files but a lot of it doesn't make sense to
me, and I really have no idea what to do next!!!

Thank-you
BRAD MURPHY

- Raw text -


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