I have problem using external shared object on
IBM AIX version: 4.3 with
NCL version: 4.1
A simple sample fortran code :
---------------- test.f -----------------------
C NCLFORTSTART
SUBROUTINE TEST(A,B)
INTEGER A,B
C NCLEND
A = B + 2
END
-------- Make a shared object by: ---------
wrapit77 < test.f > test_W.c
nhlcc -c test_W.c -I$NCARG_ROOT/include -L$NCARG_ROOT/lib
nhlf77 -c test.f
ld -G -bnoentry -bexpall -o test.so test.o test_W.o
---------- run ncl will get: -------------------
$ncl
ncl 0>external test "./test.so"
Illegal instruction(coredump)
$
Anyone has any idea ? I have tried it on Linux and it worked.
This archive was generated by hypermail 2b29 : Sat Dec 29 2001 - 13:38:13 MST