I've got ncl for OS X (with the gnu tools) installed. Using this little
fortran program
C NCLFORTSTART
subroutine cerf(x,y,n)
integer n
real x(n),y(n)
C NCLEND
do i=1,n
y(i) = erfc(x(i))
enddo
return
end
I ran "wrapit77 < erfc.f > erfc_W.c", then
g77 -O -c -fno-common erfc.f
cc -O -c -fno-common erfc_W.c
cc -bundle -flat_namespace -undefined suppress -o erfc.so erfc.o erfc_W.o
However, this is the error message ncl produces when I try to load the
shared object:
ncl 0> external ERFC"./erfc.so"
warning:Could not find Init() in external file ./erfc.so, file not loaded
"void Init(void)" does exist in erfc_W.c.
Does anyone have an idea what this means?
-Jeff
-- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : jsw@cdc.noaa.gov 325 Broadway Web : www.cdc.noaa.gov/~jsw Boulder, CO, USA 80303-3328 Office : Skaggs Research Cntr 1D-124
This archive was generated by hypermail 2b29 : Fri Apr 05 2002 - 13:53:45 MST