Mail Archives: djgpp/1997/04/24/03:29:55
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 -