From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,88ff5f2594f7f64a X-Google-Attributes: gidfee84,public From: mortimer@physics.uq.oz.au (Ian Mortimer) Subject: Re: cc and f77 linking : libraries required ? Date: 1996/08/27 Message-ID: <4vtja7$fnt@hobyah.cc.uq.oz.au>#1/1 X-Deja-AN: 176665174 references: <4vsbeb$d3g_001@iroe.fi.cnr.it> organization: University of Queensland newsgroups: comp.unix.osf.osf1 Dr Francesco Mencaraglia (menca@iroe.iroe.fi.cnr.it) wrote: > I am trying to compile a C programs which > calls fortran-77 routines. what I do is: > f77 -c routine.f > cc -c programc > cc program.o routine.o -lUfor -lfor -lm > but I get a few unresolved symbols (something like _Ots....); inspecting > /usr/lib I found some libraries libots.a libots2.a but this was not enough. It is better to compile with f77 even if your main routine is in C. You will need to use something like the following: f77 -nofor_main program.o routine.o -lm Hope this helps. Ian