| Peter van Hooft 2007-09-28, 7:12 pm |
| On 2007-09-28, wong_powah@yahoo.ca <wong_powah@yahoo.ca> wrote:
> I got an link error for undefined reference to `__ctype_b' and
> `__ctype_tolower'.
>
> The glibc version is 2.5-3 and gcc version is 4.1.2 20070626 (Red Hat
> 4.1.2-13) on FC6
>
> $ make
> /bin/sh ../../../libtool --mode=link g++ -O -O0 -DOS_LINUX -DOS_UNIX -
> DLITTLE_ENDIAN -DUSE_PTHREADS -O -o RASMain RASMain.o RASServer.o
> libHw.la -L/usr/lib -lUtility /usr/lib/libpopt.so -ldl
> g++ -O -O0 -DOS_LINUX -DOS_UNIX -DLITTLE_ENDIAN -DUSE_PTHREADS -O -o
> RASMain RASMain.o RASServer.o /usr/lib/libpopt.so ./.libs/libHw.al -L/
> usr/lib -lUtility -ldl
> /usr/lib/libUtility.so: undefined reference to `__ctype_tolower'
> /usr/lib/libUtility.so: undefined reference to `__ctype_b'
> collect2: ld returned 1 exit status
> make: *** [RASMain] Error 1
>
> How to fix this problem?
>
http://www.ticam.utexas.edu/misc/ctype.c
peter
|