[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
time() in g77
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: time() in g77
- From: Aaron Jackson <jackson_(_at_)_negril_(_dot_)_msrce_(_dot_)_howard_(_dot_)_edu>
- Date: Mon, 27 Apr 1998 02:36:10 -0400
- Delivery-date: Mon Apr 27 00:00:28 1998
I wrote a random number generator in fortran which is initialized with the
system clock, but the version of g77 included in OpenBSD2.2 does not
support the time(3) function call. Does anybody have any experience with
linking fortran programs with C functions? I know it can be done since
g77 is written in C and the g770.5.21 info file also mentions this.
I've looked through the g77 runtime library source code and, other than
the f2c header file, I don't see anything special in the functions that
would indicate linking to a fortran program. I assume that the details
are handled by the linker, but I can not seem to get it to work. If
anybody has any tips, hints or pointers on how to go about doing this,
they would be greatly appreciated.
Aaron Jackson jackson_(_at_)_msrce_(_dot_)_howard_(_dot_)_edu
Visit your host, monkey.org