Date: Mon, 27 May 2002 19:39:28 -0500 From: bishoju <bishoju@auburn.edu> To: questions@freebsd.org Subject: compiling and linking Message-ID: <3CF2D8C1@webmail.duc.auburn.edu>
next in thread | raw e-mail | index | archive | help
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 <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xinerama.h>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CF2D8C1>
