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: Organization: AOL http://www.aol.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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)