From: "Maitre" Newsgroups: gnu.gcc,gnu.gcc.help,comp.os.msdos.djgpp Subject: Re: How do I compile using gcc? Date: Tue, 12 Sep 2000 09:47:56 +0200 Lines: 48 Sender: information AT 195 DOT 115 DOT 92 DOT 81 Message-ID: <8pkn20$4r$1@news.entreprises.cegetel.fr> References: <8pjebi$bfh$1 AT news DOT ihug DOT co DOT nz> <39BD7364 DOT 85469E1F AT bellsouth DOT net> NNTP-Posting-Host: 195.115.92.81 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You can also type "man gcc" in the shell but it's a little complicated the most useful options are: -I -L to include more libraries -Wall to show all warnings for example you have a app using 3 files: -main.c the file containing the main() function -bailando.c and bailando.h the files containing other functions used by main() to compile this prog, you have to type: gcc -c main.c -Wall -> main.o is generated gcc -c bailando.c -Wall -> bailando.o is generated gcc -o main main.o bailando.o ->the binary program is generated then launch your app: ./main "Joe Durusau" wrote in message news:39BD7364 DOT 85469E1F AT bellsouth DOT net... > You can get a very elaborate set of docs in the source > distribution, or you can go to www.gnu.org and look for documentation. > > There are a huge number of options for gcc, far too many > to list in a simple post. -Wall means print all warnings. > A typical command line for the dreaded hello.c program might be: > > gcc -o hello hello.c > > You really need to look at the docs, they go on and on and on... > > Speaking only for myself, > > Joe Durusau > > > K Donovan wrote: > > > > What is the command line for gcc? What does -wall mean? (and the other > > commands of course) Is there a document on the net which can help me? - > > thanx in advance.