Mail Archives: djgpp/1998/02/19/12:45:02
From: | "John M. Aldrich" <fighteer AT cs DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: [Q] How can I compile multiple source file to generate single executable?
|
Date: | Wed, 18 Feb 1998 20:53:53 -0500
|
Organization: | Two pounds of chaos and a pinch of salt.
|
Lines: | 27
|
Message-ID: | <34EB90B1.2F5F@cs.com>
|
References: | <34ea98e7 DOT 2113659 AT news DOT kreonet DOT re DOT kr>
|
NNTP-Posting-Host: | ppp227.cs.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Kim,Young-Jae wrote:
>
> Hi...
>
> I'm using DJGPP for windows 95...
> I want to know how I can compile multiple source file to make single
> source file...
> Namely, if I have "a.h", "a.cpp","a_main.cpp"...
> (a.h - the definitions of classes.../ a.cpp - the definitions of
> methods in class / a_main.cpp - the file containing the main
> functions) and want to make "a.exe" using DJGPP...
> What command should I type in command line prompt...???
Just type all the filenames on the command line:
gcc -Wall -O -g -o a.exe a_main.cpp a.cpp
The parameters '-Wall', '-O', and '-g' add extra warnings,
optimizations, and full debugging information, respectively.
--
---------------------------------------------------------------------
| John M. Aldrich | "Be wary of strong drink. It can |
| aka Fighteer I | make you shoot at tax collectors-- |
| mailto:fighteer AT cs DOT com | and miss." |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -