delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/08/20:51:59

To: storms AT 020 DOT co DOT uk
Cc: djgpp AT delorie DOT com
Subject: Re: Compiling CPP programs
References: <8a55ej$73p$1 AT nnrp1 DOT deja DOT com>
From: Prashant TR <tr AT midpec DOT com>
Date: 08 Mar 2000 22:49:37 +0500
In-Reply-To: storms@020.co.uk's message of "Wed, 08 Mar 2000 09:10:45 GMT"
Message-ID: <lqd7p5mjwu.fsf@envy.midpec.com>
Lines: 17
X-Mailer: Gnus v5.7/Emacs 20.4
Reply-To: djgpp AT delorie DOT com

storms AT 020 DOT co DOT uk writes:

> How do I compile multiple cpp
> programs

Like this:

gpp -c -o file1.o file1.cpp
gpp -c -o file2.o file2.cpp
gpp -o file.exe file1.o file2.o

The first two do the compilation.
The last one does the linking.

> Please, reply to storms AT 020 DOT co DOT uk.

Done.

- Raw text -


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