This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [gnu@gnu.org: [Fwd - Frm: sergei@servermail.cepro.cefetpr.br, Subj: failure notice!]]


>    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]