libraries; Fortran / -lf2c / Slackware woes

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
20 May 1998 20:00:56 +0200


Martin Maechler <maechler@stat.math.ethz.ch> writes:

>     Jim> On my Red Hat 5, the f2c library is included by the -lf2c in the
>     Jim> Makefile.
> makes sense.
> 
>     Jim> However, my son has just installed a new version of
>     Jim> Slackware and we can find no way to convince gcc to include the
> All I ever hear about Slackware is that you should not use it anymore...
> [I used to have a 0.99x version of Linux.. and *did* have Slackware then..]
> 
>     Jim> f2c library. (With the previous version of Slackware that he had,
>     Jim> it could be tricked by placing -L/usr/lib right before -lf2c,
>     Jim> something I never understood.)
> 
> -L/usr/lib  says to that -lf2c should also search for libf2c.a or .so
>  in /usr/lib.
> However that is standard (in Linux), so I don't understand either.

I've seen some similar cases in the distant past, apparently related
to argument order of the link command arguments. If all else fails,
one can always specify /usr/lib/libf2c.so directly. Provided that the
file is actually there, of course...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._