delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/16/09:59:48

From: "Kalum Somaratna" <kalum AT ToughGuy DOT net>
To: djgpp AT delorie DOT com
Date: Sat, 16 Oct 1999 19:07:58 +0600
MIME-Version: 1.0
Subject: Re: use Djgpp compiler
Cc: wcsu AT learn DOT senecac DOT on DOT ca
In-reply-to: <38084AC0.51BFB55D@learn.senecac.on.ca>
X-mailer: Pegasus Mail for Win32 (v3.12)
Message-Id: <19991016130714.D2C4963A0F@zagnut.hotpop.com>
X-HotPOP: -----------------------------------------------
Sent By HotPOP.com FREE Email
Get your FREE POP email at www.HotPOP.com
-----------------------------------------------
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 16 Oct 99, at 2:52, Wen Cong Su <wcsu AT learn DOT senecac DOT on DOT ca> wrote:

> Hi
> 
> I 'm a first time user of your C C++ compiler.  I was just wondering how
> to you open the Djgpp C C++ compiler? And how do you open the editor to
> create a program ? How do your compile the program? And how do you give
> a name to the file when you compile it
> (in phobos I use the command a.c -o a which name the program a.c a.) ?
> The last and final question is this compiler same as phobos in the way
> program written ?
> 
> Thank for you time
> 
> Josh

Hi Josh,
>>How do your compile the program?

The compiler is called gcc.exe so if you want to compile a file 
called test.c the syntax would be 'gcc test.c -o test.exe'  .

>>And how do you give a name to the file when you compile it

The -o switch above indicates what the output file should be ( if you 
wanted the output file to be hello.exe the command would be 'gcc 
test.c -o hello.exe' ) . 
There are a lot of other switches for example '-O3' would perform 
optimizations.

>> And how do you open the editor to create a program ?

There is a IDE for DJGPP called RHIDE you can download at the 
same FTP site you got DJGPP from or at DJ's website. It is good 
and it has a similar interface to BORLAND's product's. It has a 
menu driven interface and a good help system available. 
If you already have it just type RHIDE at the dos prompt and press 
enter.


>>The last and final question is this compiler same as phobos in 
>>the way program written ?
Sorry Josh but i don't know anything about phobos. Maybe 
someone else might help you.

BTW Why don't you download the DJGPP FAQ. It has lot's of 
information for anyone.
Hope this help's.
Kalum Somaratna.

- Raw text -


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