LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-17-2007, 03:10 AM   #1
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
Thumbs up /usr/X11R6/lib/libX11.so: 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<X11/Xutil.h>
#include<X11/keysym.h>
#include<X11/Xresource.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/libX11.so: undefined reference to `__ctype_toupper'
/usr/X11R6/lib/libX11.so: undefined reference to `__ctype_tolower'
/usr/X11R6/lib/libX11.so: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status

i checked for libX11.so /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, 05:16 AM   #2
KrahnacK
Member
 
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.
 
  


Reply


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 10:25 PM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 10:27 PM
Couldn't open RGB_DB ' /usr/X11R6/lib/X11/rgb lilohatea Debian 2 01-30-2006 08:57 PM
ld not finding libraries in /usr/X11R6/lib gustavderdrache Linux - Software 2 01-16-2006 05:34 PM
Installation failed: file /usr/X11R6/lib/libGL.so.1.2 from install of fglrx-glc22-4. witchy2k1 Linux - Newbie 13 01-25-2004 06:26 AM


All times are GMT -5. The time now is 04:36 AM.

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