From: mortimer@physics.uq.oz.au (Ian Mortimer)
Subject: Re: cc and f77 linking : libraries required ?
Date: 1996/08/27 [thread overview]
Message-ID: <4vtja7$fnt@hobyah.cc.uq.oz.au> (raw)
In-Reply-To: 4vsbeb$d3g_001@iroe.fi.cnr.it
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
next prev parent reply other threads:[~1996-08-27 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-26 4:00 cc and f77 linking : libraries required ? Dr Francesco Mencaraglia
1996-08-27 4:00 ` Steve Lionel
1996-08-27 4:00 ` Ian Mortimer [this message]
1996-08-28 4:00 ` John Reinitz
1996-08-29 4:00 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox