www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/18/19:04:28

From: myknees AT aol DOT com (Myknees)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Q] How can I compile multiple source file to generate single
Date: 18 Feb 1998 23:49:20 GMT
Lines: 19
Message-ID: <19980218234900.SAA02957@ladder03.news.aol.com>
NNTP-Posting-Host: ladder03.news.aol.com
References: <C12565AF DOT 00345315 DOT 00 AT vega DOT ads DOT it>
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

G DOT DegliEsposti AT ads DOT it writes:
> >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...???
> 
> gxx -o a.exe a.cpp a_main.cpp

If you are programming with more than one source file, it may be worth taking a
look at "make."  make can keep track of what files depend on which, compiling
what needs to be compiled at the right time.  

You can learn about make with info.exe with the command:
info make

--Ed (Myknees)

- Raw text -


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