This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gnu@gnu.org: [Fwd - Frm: sergei@servermail.cepro.cefetpr.br, Subj: failure notice!]]
- To: <sergei at servermail dot cepro dot cefetpr dot br>
- Subject: Re: [gnu@gnu.org: [Fwd - Frm: sergei@servermail.cepro.cefetpr.br, Subj: failure notice!]]
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 2 Jun 2000 10:36:03 +0200
- CC: gcc at gcc dot gnu dot org
- References: <200006020748.BAA21914@aztec.santafe.edu>
> I have checked few times your manual for g77 and didn't find the
> example which could explain me how it is possible to compile few
> subroutine files separately - without "main" program body? What kind of
> flag (option) for g77 compiler I have to use? This problem rise up
> because I'm trying to install few math. Libraries.
Please use the "-c" option to compile a source file into an object
file. You can then either use ar(1) to combine the object files into a
library, or provide the object files to another g77 invocation when
you want to link the final executable.
Hope this helps,
Martin