Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 14:59:43 -0500 (EST)
From:      nvp@mediaone.net
To:        banta@ghulam.force9.co.uk (Ghulam Dastgir)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: XWindows programming
Message-ID:  <19981129195943.2179.qmail@inhaler.noopy.org>
In-Reply-To: <01be1c11$6c9b6e60$0d8ea6c3@signup> from Ghulam Dastgir at "Nov 29, 98 07:27:57 pm"

next in thread | previous in thread | raw e-mail | index | archive | help

> I've just started X programming using Xlib and when I compile my C
> program, that includes the header file Xlib.h, I get errors for all
> the Xlib.h declared functions my C program calls, like:

You should be using the (gcc) options -I/usr/X11R6/include and
-L/usr/X11R6/lib as well as -lX11 -lXt, so:

prompt$ gcc -I/usr/X11R6/include -L/usr/X11R6/lib file.c -lX11 -lXt

-- 
Nate Patwardhan
nvp@mediaone.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981129195943.2179.qmail>