undefined reference to `__ctype_b'
when i built my program (i used 3rd party .a file - libxerces-c_static.a(), I met below link error:
./lib_2_8_64bit/libxerces-c_static.a(XMLString.o): In function `xercesc_2_8::XMLString::trim(char*)':
XMLString.cpp:(.text+0xa85): undefined reference to `__ctype_b'
XMLString.cpp:(.text+0xab0): undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make: *** [all] Error 1
anybody knows how to resolve this problem? thanks in advance.
Re: undefined reference to `__ctype_b'
This seems to be a problem on some Redhat systems. I had it myself.
Here is a file you can compile and link to your application:
https://svn.cscs.ch/vtkContrib/trunk...tCDF/ctype_b.c
Maybe this is also of interest to you:
https://bugzilla.redhat.com/show_bug.cgi?id=91290
HTH,
Richard
Re: undefined reference to `__ctype_b'
thanks a lot, richard.
finally i added that patch file and it works now.