From: "deckerben" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: a beginner's question Date: Tue, 15 Oct 2002 00:37:36 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 32 Message-ID: <3dab462b$0$154$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.6.60.26 X-Trace: 1034634796 news.freenet.de 154 213.6.60.26 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Amir" wrote in message news:bb952aa2 DOT 0210141406 DOT 581dc391 AT posting DOT google DOT com... > In the command: > gcc help.c -o help.exe > What does -o mean?Where I can find more information about > the syntaxes of this and similar commands? -o means "Place the output into " which means that the result should have the name you specify. An example is: gcc -I. -O2 more.c -o more.exe -lncurses -lwatt ../libcommon.a Here gcc is compiling the EXE 'more.exe' from the source code 'more.c'. I am using '-I.' to specify that the current directory (".") should also be searched for needed include files. The '-l' links the preliminary object code with the specified pre-compiled library name (minus the 'lib' prefix) found in your DJGPP 'lib' directory and the final 'libcommon.a' at the end is an additional library at another location (in the parent directory in this case) that I need to link with... in THAT case called WITHOUT '-l' (unless you use -L first, but that is getting a bit complicated perhaps). -O2 is Martin Stromberg's commandment for code optimization :-). Note that some gcc command lines can grow beyond the allowable DOS command length. Bash (that comes with DJGPP) can carry out much longer commands. For more details on the gcc command line, type "gcc --help" or "info gcc". Ben