Mail Archives: djgpp/1998/03/28/16:16:27
thecoys wrote:
>
> This is probablly a stupid question, but I need to know. I've downloaded
> your C compiler unzipped it, and added the autoexec lines. But now I
> want to write a C program, how do I? Thanks for your time.
You can use any text editor to create a program. It doesn't matter what
it is, as long as it can write text files. DOS Edit, Windows Notepad,
and many other editors will work. DJGPP also comes with two IDE-style
editors: RHIDE, which resembles Turbo C, and GNU Emacs, which is a very
complex and highly efficient editor/programming environment. RHIDE has
been said to be very friendly to beginning programmers.
If you want to compile on the command line, you simply run 'gcc',
telling it what file you want to compile. To specify the target file,
use the '-o' switch, as in "gcc -o myprog.exe myprog.c". For C++, use
'gpp' instead of 'gcc'.
More instructions can be found in the file 'readme.1st', or in the DJGPP
User's Guide at http://www.delorie.com/doc/ug/. It is vital that you
read the documentation!
hth!
--
---------------------------------------------------------------------
| John M. Aldrich | "Animals can be driven crazy by pla- |
| aka Fighteer I | cing too many in too small a pen. |
| mailto:fighteer AT cs DOT com | Homo sapiens is the only animal that |
| http://www.cs.com/fighteer | voluntarily does this to himself." |
---------------------------------------------------------------------
- Raw text -