05-16-2002
This works for me on 11.00, you may have to modify slightly for 10.20.
gcc -o xev xev.c -DSVR4 -DSYSV -DFUNCPROTO=15 -L/usr/lib/X11R6 -lX11
BTW, you should not use the bundled compiler (cc) for general development. It is a crippled compiler which is only included so that you may rebuild your kernel if necessary. Use the ansi compiler or (preferably) gcc.
10 More Discussions You Might Find Interesting
1. Programming
typedef struct {
struct timeval t1;
struct timeval time;
} timer_t;
cc: "timer.h", line 9: error 1584: Inconsistent type declaration: "timer_t".
It compiles fine with gcc...:confused:
Thanks for the help. (3 Replies)
Discussion started by: clockworks
3 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
I want to compile a program and dump errors to a text file. How could I do so..?
Thanks for reading and thanks in advance!!! (6 Replies)
Discussion started by: starstarting
6 Replies
3. AIX
I recently compile some code in 32 bit mode on a AIX 5.3 server that has its kernal set to 64 bit mode. The compile was successful and the code works great. That being the case I use the model of the successful makefile on some other code but ended up getting errors that looked like this......
... (2 Replies)
Discussion started by: morrisey
2 Replies
4. Programming
I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc
Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008
Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies
5. Solaris
have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build:
./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies
6. Solaris
I'm trying to compile tacacs+-F4.0.4.18 on Solaris 10 (sparc based server). It fails during the "./configure" phase with the following error:
checking whether to use libwrap... yes
configure: error: Could not find libwrap. You must first install tcp_wrappers.
I do a have tcpwrappers... (4 Replies)
Discussion started by: pingmeback
4 Replies
7. Programming
Hi All,
My test code ldap_test.c can be compiled successfully with gcc2.95.2. But not gcc 4.1.2 in redhat5.5. The command I used and the output are:
#gcc -fPIC -shared -o lib_ldap_rhel.so ldap_test.c
/usr/include/ldap.h:179: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ... (2 Replies)
Discussion started by: rluo
2 Replies
8. UNIX Desktop Questions & Answers
Hi:
I am trying to remap Caps_lock to something else but just encountered an unexpected issue: the xwindows can't even detect Caps_lock. I tried with xev, there was no events shown when Caps_lock key was toggled.
the key itself still works though, meaning it does toggle the... (2 Replies)
Discussion started by: phil518
2 Replies
9. HP-UX
asprintf.c: In function 'vasprintf':
asprintf.c:58: error: 'SIZE_MAX' undeclared (first use in this function)
asprintf.c:58: error: (Each undeclared identifier is reported only once
asprintf.c:58: error: for each function it appears in.)
Someone know how to fix?
Thanks (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
10. HP-UX
The sendmail on hp site is too old,and still support the bugged ssl3(poodle) even if enable tlsv1.
So i decide to compile sendmail by myself
i use this site.config.m4
define(`confCClibsmi', `gcc -fPIC')
define(`confCC',`/usr/local/bin/gcc -fPIC')
define(`confOPTIMIZE', ` -O3')... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
XEV(1) General Commands Manual XEV(1)
NAME
xev - print contents of X events
SYNOPSIS
xev [-display displayname] [-geometry geom] [-bw pixels] [-bs {NotUseful,WhenMapped,Always}] [-id windowid] [-root] [-s] [-name string]
[-rv]
DESCRIPTION
Xev creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized,
typed in, clicked in, etc.). You can also attach it to an existing window. It is useful for seeing what causes events to occur and to
display the information that they contain; it is essentially a debugging and development tool, and should not be needed in normal usage.
OPTIONS
-display display
This option specifies the X server to contact.
-geometry geom
This option specifies the size and/or location of the window, if a window is to be created.
-bw pixels
This option specifies the border width for the window.
-bs {NotUseful,WhenMapped,Always}
This option specifies what kind of backing store to give the window. The default is NotUseful. Backing store refers to the the
pixels saved off-screen when the X server maintains the contents of a window; NotUseful means that the xev process will redraw its
contents itself, as necessary.
-id windowid
This option specifies that the window with the given id should be monitored, instead of creating a new window.
-root This option specifies that the root window should be monitored, instead of creating a new window.
-s This option specifies that save-unders should be enabled on the window. Save unders are similar to backing store, but they refer
rather to the saving of pixels off-screen when the current window obscures other windows. Save unders are only advisory, and are
normally set for popup dialogs and other transient windows.
-name string
This option specifies the name to assign to the created window.
-rv This option specifies that the window should be in reverse video.
SEE ALSO
X(7), xwininfo(1), xdpyinfo(1), Xlib Programmers Manual, X Protocol Specification
See X(7) for a full statement of rights and permissions.
AUTHOR
Jim Fulton, MIT X Consortium
X Version 11 xev 1.2.0 XEV(1)