[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Foreign function load for Fortran and C



I have a CL program which will interface to both C and Fortran.
However I have difficulty loading both C and Fortran with the
foreign function loader.

------------------
(load "rg4r.o"
  :foreign-files '("contour.o")
  :system-libraries '("F77" "I77" "m")
  :unreferenced-lib-names '("_f_init"))

_fatal: ld: /lib/libI77.a(err.o): multiply defined
Warning: Foreign load failed

---------------------

"rg4r.o" is the Fortran program, which needs the F77, I77 and m libraries.
"contour.o" is the C program, which only needs the m library.

Thanks in advance for your help,
KK