www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/18/03:30:27

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help =o
Date: 18 Feb 1997 06:59:14 GMT
Organization: Oxford University
Lines: 60
Message-ID: <5ebk02$mnf@news.ox.ac.uk>
References: <3308DEA6 DOT 4062 AT access DOT mountain DOT net>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Cliff (cronos AT access DOT mountain DOT net) wrote:
: I just downloaded what I thought was all of  the djgpp files that I
: needed.  First I would like to know if this is all that I need or if
: there is anything else I should get. 
: O.K. here is what I have:
: djdev201.zip
: gcc2721b.zip
: bnu27b.zip
: gpp2721b.zip
: lgp2721.zip

This is sufficient, but I would add these to the list:

* txi390b.zip (info (help) file reader)
* csdpmi3b.zip (DPMI server, in case you run your progs on non-DPMI systems)
* faq210b.zip (FAQ - you must must must get this)

and either:

* rhide11b.zip (A Borland-style IDE for editing your programs)

or:

* mak375b.zip (command-line make utility)

You should have readme.1st, which tells you what to get. 

: #include <stdio.h>

: main()
 ^--- main() should return an int
: {
:     printf("Hello, World!);
                           ^--- Should be a closing " after the !
                           <--- Should return a value, e.g. return 0;
: }

: I put the command C:\DJGPP\BIN>gcc -c -Wall hello.c

If you put the -c switch in, it won't make an executable - it will compile
the source code to object code (hello.o). To make an executable, replace
the -c switch with -o hello.exe and it will create hello.exe for you.

This is all documented in the manuals for gcc (you'll need the info viewer
from txi390b.zip to read them) and also (briefly) in readme.1st.

: it said there was an stdio.h error or somthing similar
: is my script wrong or did I put the wrong command?

You need to read the file readme.1st - it will tell you to add the following
lines to your autoexec.bat:

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

Hope this helps.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


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