Linker Error: undefined reference to __ctype_b

Mikko Työläjärvi mbsd at
Mon Apr 10 06:52:33 UTC 2006

On Mon, 10 Apr 2006, Premal Mishra wrote:

> Hi,
> Am tryin to compile a C program which uses 3rd party library.
> I get the following error during linking:
> "undefined reference to __ctype_b" and this error comes up for many more names.
> Whats may be the problem ?

Without additional information, I'd say you are trying to link against
a linux library.  You are presumably running FreeBSD, so that is not
likely to work.

But, as that particular symbol can cause problems on linux if you have
a library built against an older version of glibc, pehaps you are
actually running Linux?  If so, this is the wrong mailing list.


More information about the freebsd-questions mailing list