achillis
12-16-2003, 07:30 PM
I'm using lahey fortran compiler on redhat 9.0. If I compile my fortran
code by using --staticlink. I got the following error:
$ make flow2
lf95 --staticlink flow2.o -o flow2
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfb6): In function `jwe_iiie':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfc2): In function `jwe_iiie':
: undefined reference to `__ctype_tolower'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1036): In function `jwe_iiie':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1042): In function `jwe_iiie':
: undefined reference to `__ctype_tolower'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xa1): In function `jwe_icdb':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xaa): In function `jwe_icdb':
: undefined reference to `__ctype_tolower'
make: *** [flow2] Error 1
I have no idea of what's going wrong? Anybody has an idea? I didn't have
this problem on redhat linux 8.0,so I think it's a redhat problem,not lahey
fortran compiler problem.
btw: It compiles fine if I don't use --staticlink. The lahey fortran version is 6.0 express and I've already installed the patch.
Thanks
Ding
code by using --staticlink. I got the following error:
$ make flow2
lf95 --staticlink flow2.o -o flow2
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfb6): In function `jwe_iiie':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfc2): In function `jwe_iiie':
: undefined reference to `__ctype_tolower'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1036): In function `jwe_iiie':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1042): In function `jwe_iiie':
: undefined reference to `__ctype_tolower'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xa1): In function `jwe_icdb':
: undefined reference to `__ctype_b'
/opt/lf9560/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xaa): In function `jwe_icdb':
: undefined reference to `__ctype_tolower'
make: *** [flow2] Error 1
I have no idea of what's going wrong? Anybody has an idea? I didn't have
this problem on redhat linux 8.0,so I think it's a redhat problem,not lahey
fortran compiler problem.
btw: It compiles fine if I don't use --staticlink. The lahey fortran version is 6.0 express and I've already installed the patch.
Thanks
Ding