[comp.lang.fortran] SUN F77 system & _units

mcnabb@uxe.cso.uiuc.edu (08/29/89)

[My apologies if this has been discussed here recently or if
 readers find this a bit obscure; I rarely read this news group.]

I am unable to link a SUN F77 program which contains a call to the
"system" library routine (this takes a string and calls the program
as if you had sent a command line to a shell).  I was also not able
to use a C routine to make the call for the F77 program.  In both
cases I get a message about "_units" being undefined.  The C routine
is fine by itself, as is the F77 program with a dummy C routine.  I
have tried all sorts of library combinations, RTFM, etc. to no avail.

Any ideas about what I'm doing wrong or how to get around the problem?
Suggestions on how I might find an answer would also be very welcome.
Please email replies to mcnabb@ncsa.uiuc.edu -- Thanks!

	David McNabb	
	National Center for Supercomputing Applications

khb@road.Sun.COM (road) (08/30/89)

In article <50500146@uxe.cso.uiuc.edu> mcnabb@uxe.cso.uiuc.edu writes:
>

>cases I get a message about "_units" being undefined.  The C routine

You don't mention your version ... my recollection is that this is a
f77v1.1 bug, which had a patch ... which is contained in f77v1.2
(which is the standard shipped and supported product now).

Keith H. Bierman    |*My thoughts are my own. !! kbierman@sun.com
It's Not My Fault   |	MTS --Only my work belongs to Sun* 
I Voted for Bill &  | Advanced Languages/Floating Point Group            
Opus                | "When the going gets Weird .. the Weird turn PRO"