Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files

Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files

Post by mmz » Tue, 25 Nov 2003 12:44:21


I have a problem with these files.

#include<unistd.h>

#include<X11/Intrinsic.h>
#include<X11/Xlib.h>
#include<X11/Xatom.h>
#include<X11/Xutil.h>

Could someone please tell me where to find these files?

Thanks in advance for any help that you can give me!!


Yours Sincerely,
May
 
 
 

Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files

Post by Ken Le » Tue, 25 Nov 2003 13:34:06


@posting.google.com:


unistd.h should come with your UNIX distribution. The others are all
included in the standard X distribution. Note that they will all include more
files, so you really need a whole distribution.

Ken Lee, http://www.yqcomputer.com/

 
 
 

Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files

Post by Tom Junio » Wed, 26 Nov 2003 03:15:42

Are you having a problem compiling? Make sure to specify the library
directory.

cc MyCode.c -o MyCode -L/usr/X11R6/lib -lX11

If that doesn't work, try changing X11R6 to X11, but I think for Xfree86
it should always be X11R6.

Good luck,
Tom






--
Using M2, Opera's revolutionary e-mail client: http://www.yqcomputer.com/
 
 
 

Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files

Post by DaDeXTe » Wed, 26 Nov 2003 09:26:41

Wouldn't the original poster need to add -I/usr/X11R6/include?
 
 
 

Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files

Post by The Ghost » Thu, 04 Dec 2003 01:43:54

In comp.windows.x, May
< XXXX@XXXXX.COM >
wrote
on 23 Nov 2003 19:44:21 -0800
< XXXX@XXXXX.COM >:

Linux puts them in /usr/X11R6/include/X11/Intrinsic.h etc.
Another poster has already specified how to properly include
them in your command line for compilation; the following should
work reasonably well on most Linux systems.

cc -I/usr/X11R6/include -L/usr/X11R6/lib x_something.c -o x_something -lX11

I'd have to look regarding Solaris as a few extra things may be
required in there; note also that Solaris likes to put things in
/usr/openwin/include for various reasons.

I am also not entirely sure whether a space between the
#include and the < is needed, or not.

--
#191, XXXX@XXXXX.COM
It's still legal to go .sigless.