www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/26/18:06:35

Message-ID: <001d01bfdf73$ea2fd6a0$73dd36cb@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 23:39:12 +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 the help gunno but still no luck

I've type gcc-v and yes djgpp does look to be correctly installed.

I've created my hello world program in notepad as text and tried to compile
with

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

but still getting the same error response

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

Any ideas?

PS: sorry if I'm posting in HTML but I barely know what HTML is let alone
how to stop posting in it, if you can tell how not to post in HTML I'd be
glad to stop - i use windows outlook for e-mail.

Cheers
-----Original Message-----
From: gunno <gunno AT no-spam DOT telia DOT com>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Monday, 26 June 2000 3:39
Subject: SV: Request for assistance from real IT newbie


>Hello,
>
>Basically with djgpp you're working in a DOS box (call it DOS-Prompt [MS
name for it?], DOS window or whatever)
>
>In that DOS box try these commands
>
>    C:\>gcc -v                                                  /* testing
if you've got a working compiler */
>    Reading specs from c:/djgpp/lib/specs /* yes it's there and this is
it's answer */
>    gcc version 2.8.1
>
>    C:\>info                                 /* The information program. To
quit 'info' press 'q' */
>
>'info' has tons of valuable information and answers to most of your
questions.
>Think it's well worth the time you spend on learning how to navigate in it.
>Here are two commands:
>
>    C:\>info djgppfaq            /* Don't miss the two last lines of this
info page. Nothing beats an index !!! */
>
>    C:\>info libc alpha          /* Yet another marvellous index */
>
>
>Some specific answers:
>
>"jeffflew" <jflew AT bigpond DOT com> skrev i meddelandet
news:00c401bfdde0$74f9bd40$bada36cb AT mpdywdzn...
>
>>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 tried creating a file hello.c and running it
from the DOS-Prompt with the
>> commands suggested but no luck.
>
>1. Create a source file in an editor that can produce files in pure text
format. If you've got nothing else, 'Notepad' can do - at least as a start.
(There are better editors for programming, 'Emacs' for one)
>
>2. Save that source file with the extension '.c' . 'hello.c' is a good
name.
>
>3. Compile it.
>
>> "CMDLINE=gcc -o hello hello.c"
>
>Looks fine with the exception that you have to give the executable file the
extension '.exe' if you want it  to be executable. It's DOS that's requires
that extension to understand. So the command should look something like:
>
>C:\MyCprogs\newprogs> gcc -o hello.exe hello.c
>
>And you can get warnings if you have created code that might be faulty. I's
a very valuable option,
>which is called with '-Wall'. So it would then look like:
>
>C:\MyCprogs\newprogs> gcc -Wall -o hello.exe hello.c
>
>Good Luck with "Hello World" (and all your following programs)!
>gunno
>
>(and please turn that HTML-stuff off. It's just irritating and waste of
space)
>
>

- Raw text -


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