File:  [CSRG BSD Unix] / 43BSDTahoe / new / X / doc / Xlib / ch02a.t
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

.NH
.IN "Linking Against Xlib"
Use of Xlib
.XS
Linking Against Xlib
.XE
.PP
To use Xlib, an include line of the form
.IN "File" "<X/Xlib.h>"
\fI#include <X/Xlib.h>\fP should be put near the top of a file
using the library.
This file defines data structures, macros,
and symbols you will likely need when programming X.
.IN "File" "<X/X.h>"
.IN "File" "<sys/types.h>"
This file also includes \fI<X/X.h>\fP, and \fI<sys/types.h>\fP.
.IN "Unix Command" "CC(1)"
To link an application to Xlib,
add a \fI-lX\fP option to your cc command.
.PP
.IN "File" "<X/Xlib.h>"
The types of most of the functions below are declared in \fIXlib.h\fP, so
that you do not have to declare their types in your program.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.