undefined reference to `__ctype_b'
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: undefined reference to `__ctype_b'

  1. #1
    Join Date
    Dec 2006
    Posts
    15

    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.

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,102

    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

  3. #3
    Join Date
    Dec 2006
    Posts
    15

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center