Linker Error: undefined reference to __ctype_b

Premal Mishra premal.mishra at gmail.com
Mon Apr 10 06:58:31 UTC 2006


Hi,

Ya, am trying to link against a linux library on FreeBSD.

Is it not possible to use it?

Regards
Premal.

On 4/10/06, Mikko Työläjärvi <mbsd at pacbell.net> wrote:
> 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.
>
>   $.02,
>   /Mikko
>


More information about the freebsd-questions mailing list