|
-
October 8th, 2008, 06:48 AM
#1
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.
-
October 8th, 2008, 10:40 AM
#2
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
-
October 8th, 2008, 10:04 PM
#3
Re: undefined reference to `__ctype_b'
thanks a lot, richard.
finally i added that patch file and it works now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|