www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/03:29:55

From: rellwood <rellwood AT aludra DOT usc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: PROJECT
Date: 23 Apr 1997 19:56:02 -0700
Organization: University of Southern California, Los Angeles, CA
Lines: 29
Sender: rellwood AT aludra DOT usc DOT edu
Message-ID: <Pine.SV4.3.94.970423194400.24618B-100000@aludra.usc.edu>
References: <335EA415 DOT 6057 AT pacbell DOT net>
NNTP-Posting-Host: aludra.usc.edu
Mime-Version: 1.0
In-Reply-To: <335EA415.6057@pacbell.net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Wed, 23 Apr 1997 adamk AT pacbell DOT net wrote:

> Can someone tell me how to start a program with djgpp?
>            Thats my only question.

Oh my!  That's a very big question, and rather vague.  What exactly do you
want to program?  Do you mean you need help setting up DJGPP so that it
will compile?  Are you using RHIDE or Emacs or no IDE at all?

Here's the infamous first program that everyone writes when (s)he get a
new compiler:

#include <iostream.h>

main()
{
  cout << "Hello, world!" << endl;
}

Type this into any old text editor and save it as HELLO.CC or something,
then at the DOS prompt enter:

gcc -g -Wall hello.cc -o hello.exe

Then execute it with "hello".  If this doesn't work, then you haven't
installed DJGPP correctly, otherwise you're ready to roll.

-Richard Ellwood

- Raw text -


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