Hi,
I tried to use gfortran and gcc to create a dynamic library in Linux (redhat) from fortran and c codes,
everything works until I used the instrinsic date_and_time function in fortran.
I compiled fortran function using:
gfortran -c -shared
-fPIC samplesize4.f90
Compiled c function using:
gcc -c -shared -fPIC
smartWrapper.c
then create dynamic library:
gcc -shared -fPIC *.o
-o libsamplesize.so
No compiling error, but when I used libsamplesize.so, I got error:
symbol lookup error: /var/www/myapp/smart/lib/libsamplesize.so: undefined symbol: _gfortran_date_and_time,
what option do I need to use so I can include _gfortran_date_and_time in libsamplesize.so?
Thanks!
Liz