www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/25/11:08:49

Message-ID: <001a01bfdeb5$6e2aaa80$d4da36cb@mpdywdzn>
From: "jeffflew" <jflew AT bigpond DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Request for assistance from real IT newbie
Date: Mon, 26 Jun 2000 00:55:39 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

Thanks for your reply.

I gather my autoexec.bat, config.sys and SET are all OK from your response,
they do seem to match what's required.

Autoexec.bat
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.2.1\BIN;C:\DJGPP\BIN;%PATH%
SET CLASSPATH=.;C:\JFC;
SET DJGPP=C:\DJGPP\DJGPP.ENV

The only zip file in the DGJPP folder I could find to unzip was gcc.zip in
the \bin subdirectory which I unzipped as gcc.exe in the same directory.
Does this sound right?

I'm using version 2.01( maybe that's why it mentioned file go32-v2 which as
you've pointed out is now obsolete. Maybe that's old, I'll stick with it
however if it possible as I couldn't work out how to download from
http://www.delorie.com/ and I just couldn't bare to start again. Is
versions2.01 good enough?

Thanks for pointing out Rhide is the IDE, that is what I was asking, I went
inside the Rhide folder but couldn't produce an EDI window from this folder.
Anyway the DOS prompt will do for now if it is suitable.

OK I'm using SAMS Teach yourself C in 21 days and have created a file in my
c:\DJGPP folder tilted hello.c using Wordpad on Windows 95. The contents of
the file are as follows

#include <stdio.h>

int main()
{
    print("Hello, World!\n");
    return 0;
}

Athe the DOS prompt I typed the following

c:\DJGPP>gcc -o hello.exe hello.c

and got the following error message

hello.c:1: studio.h: No such file or directory (ENOENT)

Any suggestions as to what is wrong. Once again thanks for any help anyone
can give.

-----Original Message-----
From: Evert Glebbeek <eglebbk AT phys DOT uva DOT nl>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Monday, 26 June 2000 0:06
Subject: Re: Request for assistance from real IT newbie


>>I'm quite new to computing especially setting up PCs etc so I apologize =
>>first up if my questions seem dumb
>That's quite alright. Someone once told me that there are no dumb
>questions.
>>I installed from the CD and have looked at FAQ and readme but am getting =
>>quite lost. I've used a compiler for Java before and it could be set up =
>>like a window where you'd type the code and enter the commands for =
>>compile and execute but I can't seem to work out how to get up such a =
>>window on DJGPP. Do you just use the DOS-Prompt with DJGPP?
>I'm not sure I understand you correctly, but if what you're asking is
>if there's an ide for DJGPP, the answer is yes: rhide. If you haven't
>got it, I recommend downloading it from
>http://www.lanet.lv/~pavenis/rhide.html
>>I tried creating a file hello.c and running it from the DOS-Prompt with
the =
>>commands suggested but no luck.
>In what way does it fail? Do you get a `bad command or filename' or do
>you get an error message from GCC?
>>I've copied below my SET and autoexec.bat and config.sys. It said unzip =
>>the file go32-v2 but I can't find the file in the bin subdirectory or =
>>anywhere in my C:\DJGPP directory.
>IIRC, go32 is obsolete. What version of DJGPP did you get with the
>book? You can get the latest version from http://www.delorie.com/.
>>SET PATH=3DC:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.2.1\BIN;C:\DJGPP\BIN
>>SET CLASSPATH=3D.;C:\JFC;
>>SET DJGPP=3DC:\DJGPP\DJGPP.ENV
>I'm not sure what to make of the`3D' here, but assuming they're not
>really there, this looks right to me.
>
>>SET
>>CMDLINE=3Dgcc -o hello hello.c
>this looks right.
>>------=_NextPart_000_00C1_01BFDE34.461F8640
>>Content-Type: text/html;
>Please don't post in HTML format.
>
>Hope this helps.
>
>Evert Glebbeek

- Raw text -


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