From owner-freebsd-questions Mon May 27 17:39:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mallard.duc.auburn.edu (mallard2.duc.auburn.edu [131.204.2.23]) by hub.freebsd.org (Postfix) with ESMTP id 718C137B401 for ; Mon, 27 May 2002 17:39:28 -0700 (PDT) Received: from webmail.duc.auburn.edu (webmail.duc.auburn.edu [131.204.2.116]) by mallard.duc.auburn.edu (8.9.3/8.9.3) with ESMTP id TAA19808 for ; Mon, 27 May 2002 19:39:27 -0500 (CDT) X-WebMail-UserID: bishoju Date: Mon, 27 May 2002 19:39:28 -0500 From: bishoju To: questions@freebsd.org X-EXP32-SerialNo: 00002770 Subject: compiling and linking Message-ID: <3CF2D8C1@webmail.duc.auburn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.62 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG While I was having trouble with Xinerama I wrote this little program. I believe it is correct but do not know how to compile it on FreeBSD. If someone can tell me I would appreciate it. Jud /* xineramatest.c * By Jud Bishop * * to compile: * gcc -o xintest -I- -I/usr/X11R6/include/ -L/usr/X11R6/lib -lXt -lXinerama xineramatest.c */ #include #include #include #include int main(int argc, char *argv[]) { Bool xin; Display *display; char *which_display = NULL; if ( !(display = XOpenDisplay(which_display) ) ){ printf( "Didn't find X server. \n"); exit( -1 ); } xin = ( XineramaIsActive(display) ); if(xin) printf("xinerama IS active \n"); else printf("xinerama NOT active \n"); exit(0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message