Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-17-2007, 02:10 AM   #1
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
Thumbs up /usr/X11R6/lib/ undefined reference to `__ctype_toupper

hai all
i m using fc6.i m new to Xlib program.first time i wrote a X lib program to create a window.i included these header files in my program.

#include <X11/Xlib.h>
#include <assert.h>
#include <unistd.h>

i tried to compile this program using
$gcc -o c.out try.c -L/usr/X11R6/lib -lX11

i got the following errors.

/usr/X11R6/lib/ undefined reference to `__ctype_toupper'
/usr/X11R6/lib/ undefined reference to `__ctype_tolower'
/usr/X11R6/lib/ undefined reference to `__ctype_b'
collect2: ld returned 1 exit status

i checked for /usr/X11R6/lib.its there.i don't know how to correct this error.
i tried the same program in another machine.i got the output.i didn't get any error.wt 2 do for that?

thanks in advance.
Old 12-17-2007, 04:16 AM   #2
Registered: Nov 2007
Location: /dev/volcano
Posts: 70

Rep: Reputation: 15
it may be because of a missing libX11-dev (or whatever-dev) package ?

first make sure you have the glibc-dev package installed, but that's not all, you'll also need to install a X11 related library developement package.

since i don't use fedora i can't tell you exactly the one, sorry.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
where is FC6's /usr/X11R6/lib ? i cann't find it ! HELP NEEDED IN URGENCE close2me Fedora 3 04-15-2007 09:25 PM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
Couldn't open RGB_DB ' /usr/X11R6/lib/X11/rgb lilohatea Debian 2 01-30-2006 07:57 PM
ld not finding libraries in /usr/X11R6/lib gustavderdrache Linux - Software 2 01-16-2006 04:34 PM
Installation failed: file /usr/X11R6/lib/ from install of fglrx-glc22-4. witchy2k1 Linux - Newbie 13 01-25-2004 05:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration